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

Zoltan Somogyi zs at csse.unimelb.edu.au
Fri Jan 30 12:20:15 AEDT 2009


On 30-Jan-2009, Ralph Becket <rafe at csse.unimelb.edu.au> wrote:
> 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?

Yes, it should. In C's printf, using %x treats the argument as unsigned.

Zoltan.
--------------------------------------------------------------------------
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