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)
committerYves Orton <demerphq@gmail.com>
Thu, 14 Feb 2013 07:05:40 +0000 (08:05 +0100)
commitd327d01be059078a0f4dd9e2f675f7b4d867764a
treebc8fb353b8c26e292562c502952e84f415c46f2e
parentb8e030d7be30225a257a94c419bdffe8b996cbe3
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