Re: [cc65] Overflows in signed comparisions

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2003-10-10 20:20:29


On Friday 10 October 2003 18:32, Groepaz wrote:
> On Friday 10 October 2003 14:37, Ullrich von Bassewitz wrote:
> > On Fri, Oct 10, 2003 at 05:50:37AM +0200, Groepaz wrote:
> > > > ok, i'll try to isolate the piece of code that fails tonite...
> > >
> > > so here it is ... :=) this code loops forever and displays a sprite
> > > here (magic :)) :=P
> >
> > Ok, thanks. Should be fixed, new snapshot packages are currently
> > building. This was actually not a bug in the new code, but in the
> > existing, which was triggered by the new code. Not that this makes it any
> > better:-)
>
> cool, gotta check it later this evening :)

wow....nice one :) all of the tests work again (ie, no more crashes) and 
additionally 5 of 9 previously failing tests even return the correct
result(s) :=) lemme see if i can isolate the remaining problem(s) .... :)

gpz

ps:

oh one somewhat unrelated bug (slight chance its related to signed comparison
though ;=P) ... (if that even is one - i think i remember this
beeing a know limitation...mmmh - whatever :))

this:

printf("%08lx,%ld\n",LONG_MIN,LONG_MIN);

prints:

0xffffffff,-1

and not the expected:

0x80000000=-2147483648

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-10-10 20:26:11 CEST