From: Jarkko Hietaniemi Date: Mon, 30 Aug 1999 21:20:50 +0000 (+0000) Subject: Document the undefinedness of overshifting. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b9f7914694d22ad96effe91938bfaeb79e34b8f4;p=p5sagit%2Fp5-mst-13.2.git Document the undefinedness of overshifting. p4raw-id: //depot/cfgperl@4055 --- diff --git a/pod/perlop.pod b/pod/perlop.pod index 14ca6b5..2b5b789 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -220,11 +220,15 @@ Binary "." concatenates two strings. Binary "<<" returns the value of its left argument shifted left by the number of bits specified by the right argument. Arguments should be -integers. (See also L.) +integers. (See also L.) Shifting more than the +width of the available integer in bits (usually 32 or 64) produces +undefined (machine dependent) results. Binary ">>" returns the value of its left argument shifted right by the number of bits specified by the right argument. Arguments should -be integers. (See also L.) +be integers. (See also L.) Shifting more than the +width of the available integer in bits (usually 32 or 64) produces +undefined (machine dependent) results. =head2 Named Unary Operators