Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-08-23 01:45:10 +0400
committerRussell Belfer <rb@github.com>2013-08-23 01:45:10 +0400
commitb6ac07b51771641f3ae994c17f361fbd8bec36ef (patch)
tree88fb61ce2e4503621c6746e919343c05d5d7e311 /src/sortedcache.c
parenteb868b1e98d7cea8796f9b92be04843a7f819e5e (diff)
Trying to fix Win32 warnings
Diffstat (limited to 'src/sortedcache.c')
-rw-r--r--src/sortedcache.c2
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;