cvs commit: hugs98/src bignums.c
ross@glass.cse.ogi.edu
ross@glass.cse.ogi.edu
Thu, 10 Apr 2003 08:07:33 -0700
ross 2003/04/10 08:07:33 PDT
Modified files:
src bignums.c
Log:
Expand the range of values accepted by fromInteger :: Integer -> Int/Word
to toInteger(minBound::Int) .. toInteger(maxBound::Word).
This is required to provide the semantics advertised in Data.Int and
Data.Word, that conversions (using fromIntegral) between signed and
unsigned types preserve representation, not sign.
Revision Changes Path
1.10 +12 -33 hugs98/src/bignums.c