id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
100,overflow bug with Integers on platforms with sizeof(int) != sizeof(long),guest,nobody,"Hugs gives wrong results for minBound for some integers.  On NetBSD/amd64 I get

Data.Int> toInteger (minBound :: Int32)
-18446744071562067968

and it should be

Data.Int> toInteger (minBound :: Int32)
-2147483648


Changing line 120 in src/bignums.c from

    no = (unsigned long)(-n);

to

    no = (unsigned long)(-(long)n);

fixes this.",defect,new,major,,hugs,200609,,,kretschm@…
