[cc65] wrong warning?

From: Johan Kotlinski <kotlinski1gmail.com>
Date: 2012-01-01 16:44:32
$ cc65 --version
cc65 V2.13.2
SVN version: unknown

$ cat test.c
int main() {
    unsigned char* a = (unsigned char*)0x9000u;
    if (a > (unsigned char*)0x8000u) {
        return 1;
    } else {
        return 0;
    }
}

$ cc65 test.c
test.c(3): Warning: Condition is never true

----

...shouldn't condition _always_ be true in this case?

Regards
Johan
----------------------------------------------------------------------
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 Jan 1 16:45:07 2012

This archive was generated by hypermail 2.1.8 : 2012-01-01 16:45:11 CET