From: Andy Lester Date: Sun, 12 Feb 2006 23:08:48 +0000 (-0600) Subject: perldiag.pod patching re: integer overflow X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0be96356bfca2623ae6f5872908239eb3b0f61c9;p=p5sagit%2Fp5-mst-13.2.git perldiag.pod patching re: integer overflow Message-ID: <20060213050848.GB27993@petdance.com> p4raw-id: //depot/perl@27174 --- diff --git a/pod/perldiag.pod b/pod/perldiag.pod index f8cd5df..44b83ed 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1978,18 +1978,18 @@ operations. =item Integer overflow in division -(F) In the scope of the C pragma division would have overflowed. -This will happen if attempt to divide the largest negative integer by -1, -as on a twos complement system the result cannot be represented as a signed -integer. This division is trapped as a Perl level exception because on some +(F) In the scope of the C pragma, division would have overflowed. +This will happen if you attempt to divide the largest negative integer by -1, +since the result cannot be represented as a signed integer on a two's complement +system. This division is trapped as a Perl-level exception because on some architectures the integer divide operation will trigger a CPU exception causing program exit, rather than merely returning a mathematically wrong answer. =item Integer overflow in format string for %s -(F) The indexes and widths specified in the format string of printf() -or sprintf() are too large. The numbers must not overflow the size of +(F) The indexes and widths specified in the format string of C +or C are too large. The numbers must not overflow the size of integers for your architecture. =item Integer overflow in version diff --git a/pod/perlop.pod b/pod/perlop.pod index d9dc77f..1dc62f4 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -2265,7 +2265,7 @@ L.) However, C still has meaning for them. By default, their results are interpreted as unsigned integers, but if C is in effect, their results are interpreted as signed integers. For example, C<~0> usually evaluates to a large -integral value. However, C is C<-1> on twos-complement +integral value. However, C is C<-1> on two's-complement machines. =head2 Floating-point Arithmetic