diff options
author | Vicent Martà <vicent@github.com> | 2013-09-21 09:34:03 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-09-21 09:34:03 -0700 |
commit | 92d19d16711c059c768063956abd31db346d2e7b (patch) | |
tree | 2110237444fb9e24463f159675734f1dd6f0a028 /src/attr_file.c | |
parent | daef29ea3ed84c2ec558c46fa08077b5b55fe63d (diff) | |
parent | 66566516ce5171111ea4c5a8160adb4b0b0dc675 (diff) | |
download | libgit2-92d19d16711c059c768063956abd31db346d2e7b.tar.gz |
Merge pull request #1840 from linquize/warning
Fix warning
Diffstat (limited to 'src/attr_file.c')
-rw-r--r-- | src/attr_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attr_file.c b/src/attr_file.c index 92702df98..4eb732436 100644 --- a/src/attr_file.c +++ b/src/attr_file.c @@ -39,7 +39,7 @@ int git_attr_file__new( attrs->key = git_pool_malloc(attrs->pool, (uint32_t)len + 3); GITERR_CHECK_ALLOC(attrs->key); - attrs->key[0] = '0' + from; + attrs->key[0] = '0' + (char)from; attrs->key[1] = '#'; memcpy(&attrs->key[2], path, len); attrs->key[len + 2] = '\0'; |