From 654bb877dab77c8752cbe0f8a6e3420de7275934 Mon Sep 17 00:00:00 2001 From: johanknol Date: Tue, 25 Sep 2001 13:13:31 +0000 Subject: [PATCH] another small improvement ;( git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1311 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCicode.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SDCCicode.c b/src/SDCCicode.c index 94c0a3e9..2c95c640 100644 --- a/src/SDCCicode.c +++ b/src/SDCCicode.c @@ -143,6 +143,11 @@ void checkConstantRange(sym_link *ltype, double v, char *msg, int pedantic) { pedantic=2; #endif + if (SPEC_NOUN(ltype)==FLOAT) { + // anything will do + return; + } + if (v<0) { negative=1; // if not pedantic: -1 equals to 0xf..f -- 2.47.2