X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Flibraries%2FWord.sgml;h=bf85825f39549e6d2aef3af1667d23e59f67555f;hb=8ad7a88c951b0831e3ab0dd37777562718633df3;hp=79af677ae27b6c0187e1d0d47c23c8427cfcb8c2;hpb=fad03b44a0a09cb02f01427c14196d05a373e1c5;p=ghc-hetmet.git diff --git a/ghc/docs/libraries/Word.sgml b/ghc/docs/libraries/Word.sgml index 79af677..bf85825 100644 --- a/ghc/docs/libraries/Word.sgml +++ b/ghc/docs/libraries/Word.sgml @@ -102,6 +102,13 @@ such as +Right and left shifts by amounts greater than or equal to the width of +the type result in a zero result. 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. +