Commit f5dd2a289106c74647d35560eee55a48ff0f123f

Jacques Germishuys 2014-04-27T15:00:00

git_pool_mallocsz takes an unsigned long

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/attrcache.c b/src/attrcache.c
index f1bc704..ec22eab 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) {