diff options
Diffstat (limited to 'src/patch_parse.c')
-rw-r--r-- | src/patch_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patch_parse.c b/src/patch_parse.c index 1bf3ad861..647929fd5 100644 --- a/src/patch_parse.c +++ b/src/patch_parse.c @@ -282,7 +282,7 @@ static int parse_header_percent(uint16_t *out, git_patch_parse_ctx *ctx) if (val < 0 || val > 100) return -1; - *out = val; + *out = (uint16_t)val; return 0; } |