allow for 2Gb+ memory allocations on 64-bit Win32 debug builds
authorTony Cook <tony@develop-help.com>
Fri, 28 Oct 2011 10:19:48 +0000 (21:19 +1100)
committerTony Cook <tony@develop-help.com>
Fri, 28 Oct 2011 10:19:48 +0000 (21:19 +1100)
commit03c5309f206867fc3968282894df5f6bd65feb17
treee80515adddc53abb17ce761b47be8a8f411e437b
parentaba0546e5e59b483db69149ae72b8c7a90f9b03f
allow for 2Gb+ memory allocations on 64-bit Win32 debug builds

long is 32-bit for the 64-bit Win32 memory model, so use the more
portable SSize_t.

Before the change:

C:\Users\tony\dev\perl\git\perl>perl -e "open my $f, 'dir |' or die; $x = ''; re
ad($f, $x, 4, 0x80000000)"
panic: realloc at -e line 1.

and after:

C:\Users\tony\dev\perl\git\perl>perl -e "open my $f, 'dir |' or die; $x = ''; re
ad($f, $x, 4, 0x80000000)"

C:\Users\tony\dev\perl\git\perl>git add util.c
util.c