summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-04-27 15:00:00 +0200
committerJacques Germishuys <jacquesg@striata.com>2014-05-01 10:49:51 +0200
commitf5dd2a289106c74647d35560eee55a48ff0f123f (patch)
tree2e8672d92341e80eee4910ce3420c7f45cd01636
parent6e94a1efbca605957d6fc56ae068f30ef57c3c01 (diff)
downloadlibgit2-f5dd2a289106c74647d35560eee55a48ff0f123f.tar.gz
git_pool_mallocsz takes an unsigned long
-rw-r--r--src/attrcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attrcache.c b/src/attrcache.c
index f1bc70467..ec22eab25 100644
--- a/src/attrcache.c
+++ b/src/attrcache.c
@@ -53,7 +53,7 @@ int git_attr_cache__alloc_file_entry(
cachesize++;
}
- ce = git_pool_mallocz(pool, cachesize);
+ ce = git_pool_mallocz(pool, (uint32_t)cachesize);
GITERR_CHECK_ALLOC(ce);
if (baselen) {