mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-17 20:01:59 +00:00
Fix 64-bit build warning
This commit is contained in:
parent
075d6e7dd7
commit
2aa1e94d30
@ -35,7 +35,7 @@ int git_attr_file__new(
|
|||||||
if (path) {
|
if (path) {
|
||||||
size_t len = strlen(path);
|
size_t len = strlen(path);
|
||||||
|
|
||||||
attrs->key = git_pool_malloc(attrs->pool, len + 3);
|
attrs->key = git_pool_malloc(attrs->pool, (uint32_t)len + 3);
|
||||||
GITERR_CHECK_ALLOC(attrs->key);
|
GITERR_CHECK_ALLOC(attrs->key);
|
||||||
|
|
||||||
attrs->key[0] = '0' + from;
|
attrs->key[0] = '0' + from;
|
||||||
|
Loading…
Reference in New Issue
Block a user