From 2ab727267385f4e51e26c682e69ab98af607a562 Mon Sep 17 00:00:00 2001 From: acqn Date: Mon, 3 Aug 2020 01:15:57 +0800 Subject: [PATCH] Improved warning on comparison of unsigned type < 0. --- src/cc65/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/codegen.c b/src/cc65/codegen.c index 20bfdf434..8a879745d 100644 --- a/src/cc65/codegen.c +++ b/src/cc65/codegen.c @@ -3642,7 +3642,7 @@ void g_lt (unsigned flags, unsigned long val) /* Give a warning in some special cases */ if (val == 0) { - Warning ("Condition is never true"); + Warning ("Comparison of unsigned type < 0 is always false"); AddCodeLine ("jsr return0"); return; }