X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Flibraries%2FInt.sgml;h=b26cfe28ce11851c7d640059b58bc1d000e3332f;hb=8ad7a88c951b0831e3ab0dd37777562718633df3;hp=0e29d6cf615e15eaa7dd163f1f9744efab3f3df5;hpb=fad03b44a0a09cb02f01427c14196d05a373e1c5;p=ghc-hetmet.git diff --git a/ghc/docs/libraries/Int.sgml b/ghc/docs/libraries/Int.sgml index 0e29d6c..b26cfe2 100644 --- a/ghc/docs/libraries/Int.sgml +++ b/ghc/docs/libraries/Int.sgml @@ -83,6 +83,14 @@ with arithmetic sequences) also hold for the +Right and left shifts by amounts greater than or equal to the width of +the type result in either zero or -1, depending on the sign of the +value being shifted. This is contrary to the behaviour in C, which is +undefined; a common interpretation is to truncate the shift count to +the width of the type, for example 1 << 32 == 1 in some +C implementations. + + Hugs does not provide