[cc65] Problem with evaluating if with negative numbers

From: S M <san.mes1gmail.com>
Date: 2012-02-03 14:24:03
Hello

I had the following line of code

if (bugs[n].mx < 0 ) {...

but it didn't work so I had to change it to:

if ( (bugs[n].mx >=128) && (bugs[1].mx <=255) ) {...

Why the first line doesn't work if .mx is not unsigned ?

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Feb 3 14:24:10 2012

This archive was generated by hypermail 2.1.8 : 2012-02-03 14:24:15 CET