diff options
author | Linquize <linquize@yahoo.com.hk> | 2013-09-08 13:15:42 +0400 |
---|---|---|
committer | Linquize <linquize@yahoo.com.hk> | 2013-09-19 19:14:06 +0400 |
commit | 66566516ce5171111ea4c5a8160adb4b0b0dc675 (patch) | |
tree | 20d7374e602911f282ddfedf8449c8b8176d85d9 /src/oid.c | |
parent | ef6389ad504037e7a4311adbf14f1fa5a5aa4190 (diff) |
Fix warning
Diffstat (limited to 'src/oid.c')
-rw-r--r-- | src/oid.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -211,7 +211,7 @@ int git_oid_strcmp(const git_oid *oid_a, const char *str) for (a = oid_a->id; *str && (a - oid_a->id) < GIT_OID_RAWSZ; ++a) { if ((hexval = git__fromhex(*str++)) < 0) return -1; - strval = hexval << 4; + strval = (unsigned char)(hexval << 4); if (*str) { if ((hexval = git__fromhex(*str++)) < 0) return -1; |