coreutils/coreutils-5.1.0-64bit-fixes.patch
2012-02-01 14:36:01 +04:00

11 lines
386 B
Diff

--- coreutils-5.0.91/lib/physmem.c.64bit-fixes 2004-01-08 16:23:09.000000000 +0100
+++ coreutils-5.0.91/lib/physmem.c 2004-01-08 16:27:37.000000000 +0100
@@ -84,7 +84,7 @@ typedef WINBOOL (WINAPI *PFN_MS_EX) (lME
static double
physmem_cap (double mem)
{
- double max = 1 << (sizeof(void *)*8 - 4);
+ double max = 1L << (sizeof(void *)*8 - 4);
return mem > max ? max : mem;
}