[m-rev.] for review: allow string.base_string_to_int to parse int.min_int literals

Ralph Becket rafe at csse.unimelb.edu.au
Wed Jan 13 16:58:35 AEDT 2010


Ian MacLarty, Wednesday, 13 January 2010:
> Change string.base_string_to_int so that it doesn't fail if the base is 10 and
> the integer is int.min_int.  The previous behaviour seems unintuitive and means
> we can't use the literal -2147483648 in Mercury programs on 32 bit machines,
> even though that number can be represented in 32 bits.

What about 64 bits?
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list