diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-09-24 09:25:10 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-05-26 13:01:06 -0500 |
commit | f941f035aea73aeda0093a85e514711d006cda22 (patch) | |
tree | 1073a32d0dcc8c650dfa5747ffdcc2af9d01cf8a /src/patch_parse.c | |
parent | 040ec883a47744349c89178114f8ae2c8324ef57 (diff) | |
download | libgit2-f941f035aea73aeda0093a85e514711d006cda22.tar.gz |
patch: drop some warnings
Diffstat (limited to 'src/patch_parse.c')
-rw-r--r-- | src/patch_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/patch_parse.c b/src/patch_parse.c index 8ba75373a..25193b6b7 100644 --- a/src/patch_parse.c +++ b/src/patch_parse.c @@ -184,7 +184,7 @@ static int parse_header_mode(uint16_t *mode, patch_parse_ctx *ctx) static int parse_header_oid( git_oid *oid, - size_t *oid_len, + int *oid_len, patch_parse_ctx *ctx) { size_t len; @@ -201,7 +201,7 @@ static int parse_header_oid( parse_advance_chars(ctx, len); - *oid_len = len; + *oid_len = (int)len; return 0; } |