Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/oid.c
diff options
context:
space:
mode:
authorLinquize <linquize@yahoo.com.hk>2013-09-08 13:15:42 +0400
committerLinquize <linquize@yahoo.com.hk>2013-09-19 19:14:06 +0400
commit66566516ce5171111ea4c5a8160adb4b0b0dc675 (patch)
tree20d7374e602911f282ddfedf8449c8b8176d85d9 /src/oid.c
parentef6389ad504037e7a4311adbf14f1fa5a5aa4190 (diff)
Fix warning
Diffstat (limited to 'src/oid.c')
-rw-r--r--src/oid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oid.c b/src/oid.c
index a70b7e099..d56b6af24 100644
--- a/src/oid.c
+++ b/src/oid.c
@@ -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;