Avoid wraparound when casting unsigned size_t to signed ssize_t.
authorAndy Dougherty <doughera@lafayette.edu>
Wed, 16 Jan 2013 17:30:43 +0000 (12:30 -0500)
committerRicardo Signes <rjbs@cpan.org>
Mon, 4 Mar 2013 15:15:39 +0000 (10:15 -0500)
commitae271f001f6290a5e494d846ab5a78f5abe79752
treeafaf7b7d4c68c1e70b1d527f2a35839931166c7c
parent9d83adcdf9ab3c1ac7d54d76f3944e57278f0e70
Avoid wraparound when casting unsigned size_t to signed ssize_t.

Practically, this only affects a perl compiled with 64-bit IVs on a 32-bit
system.  In that instance a value of count >= 2**31 would turn negative
when cast to (ssize_t).
(cherry picked from commit 94e529cc4d56863d7272c254a29eda2b002a4335)
perlio.c