From f5dd2a289106c74647d35560eee55a48ff0f123f Mon Sep 17 00:00:00 2001 From: Jacques Germishuys Date: Sun, 27 Apr 2014 15:00:00 +0200 Subject: [PATCH] git_pool_mallocsz takes an unsigned long --- src/attrcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {