[cc65] bug in cc65 v2.13.2

From: Johan Kotlinski <kotlinski1gmail.com>
Date: 2012-02-05 00:22:00
#include <assert.h>

void test(unsigned int div, unsigned int number) {
    assert(number / div == 0);  // This one fails.
}

void main() {
    assert(100 / 10000 == 0);  // This one does not fail.
    test(10000, 100);
}

Cheers,
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 Feb 5 00:22:27 2012

This archive was generated by hypermail 2.1.8 : 2012-02-05 00:22:31 CET