[m-dev.] Re: changes to string module

Ralph Becket rafe at csse.unimelb.edu.au
Fri Jan 30 11:06:44 AEDT 2009


Julien Fischer, Thursday, 29 January 2009:
> 
> Hi Ralph,
> 
> I've had to back out your recent change to the string module (r1.277 of 
> library/string.m) as the compiler no longer bootstraps on 32-bit machines
> with it.  The lexer fails to recognise the hex literals in, for example,
> compiler/make.util.m:1732 or compiler/elds_to_erlang.m:938.

Hmm.  That constants in question are 0xfe3dbe7f and 0xffffffff.  To get
around the overflow check these should be -0x1c24181 and -0x1, but
that feels rather unnatural.  Maybe the overflow check should only apply
to base 10 numbers?
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at csse.unimelb.edu.au
Administrative Queries: owner-mercury-developers at csse.unimelb.edu.au
Subscriptions:          mercury-developers-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the developers mailing list