]> git.proxmox.com Git - libgit2.git/commitdiff
Fix an integral overflow on 64-bit
authorSebastian Schuberth <sschuberth@gmail.com>
Thu, 8 Sep 2011 14:43:58 +0000 (16:43 +0200)
committerSebastian Schuberth <sschuberth@gmail.com>
Thu, 8 Sep 2011 15:09:10 +0000 (17:09 +0200)
src/mwindow.c

index 585d75c12a583288b3654950dabf74ccdd40d0e6..b25921896fdc909d810c3e304cbcc1acd4130b16 100644 (file)
@@ -35,7 +35,7 @@
                : 32 * 1024 * 1024)
 
 #define DEFAULT_MAPPED_LIMIT \
-       ((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256))
+       ((1024 * 1024) * (sizeof(void*) >= 8 ? 8192ULL : 256UL))
 
 /*
  * We need this because each process is only allowed a specific amount