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:16:34 +0000 (10:16 -0500)
commit9ec0b001b87d32f1d39b038b72846a5c20417be3
treeb762998a7a597287bd135d6934413f65ab400cc7
parent6e79fe5714a72b1ef86dc890ff60746cdd19f854
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).
perlio.c