[cc65] why this doesn't work?

From: S M <san.mes1gmail.com>
Date: 2010-06-06 12:16:37
Hello all




> if ( moviles [i].tipo > -1 )
>

Member tipo is of type char, the current values for tipo are 0,1,2 and 255.
But this condition never evaluates to true even when assessing 0,1 or 2. I
made it work with

if ( moviles [i].tipo >= 0 )
>

but why doesn't it work as it is above, it would produce better code I
presume.

Thanks

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Jun 6 12:16:42 2010

This archive was generated by hypermail 2.1.8 : 2010-06-06 12:16:46 CEST