[cc65] Overflows in signed comparisions

Date view Thread view Subject view

From: Piotr Fusik (P.Fusik_at_elka.pw.edu.pl)
Date: 2003-10-04 17:53:33


Some time ago I submitted this bug report:

#include <stdio.h>
void main() {
	int a = -0x5000;
	puts(a < 0x5000 ? "ok" : "error");
	getchar();
}

As I see, it still displays "error", even with optimizations disabled.
I think that at least the docs should explain that.

Piotr

----------------------------------------------------------------------
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-04 17:56:03 CEST