diff options
author | Russell Belfer <rb@github.com> | 2013-08-22 14:45:10 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-08-22 14:45:10 -0700 |
commit | b6ac07b51771641f3ae994c17f361fbd8bec36ef (patch) | |
tree | 88fb61ce2e4503621c6746e919343c05d5d7e311 /src/sortedcache.c | |
parent | eb868b1e98d7cea8796f9b92be04843a7f819e5e (diff) | |
download | libgit2-b6ac07b51771641f3ae994c17f361fbd8bec36ef.tar.gz |
Trying to fix Win32 warnings
Diffstat (limited to 'src/sortedcache.c')
-rw-r--r-- | src/sortedcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sortedcache.c b/src/sortedcache.c index 16dd6a7a1..33171c48d 100644 --- a/src/sortedcache.c +++ b/src/sortedcache.c @@ -271,7 +271,7 @@ int git_sortedcache_upsert(void **out, git_sortedcache *sc, const char *key) itemlen = sc->item_path_offset + keylen + 1; itemlen = (itemlen + 7) & ~7; - if ((item = git_pool_mallocz(&sc->pool, itemlen)) == NULL) { + if ((item = git_pool_mallocz(&sc->pool, (uint32_t)itemlen)) == NULL) { /* don't use GITERR_CHECK_ALLOC b/c of lock */ error = -1; goto done; |