From: johanknol Date: Tue, 25 Sep 2001 13:13:31 +0000 (+0000) Subject: another small improvement ;( X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=654bb877dab77c8752cbe0f8a6e3420de7275934;p=fw%2Fsdcc another small improvement ;( git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1311 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- 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