another small improvement ;(
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 25 Sep 2001 13:13:31 +0000 (13:13 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 25 Sep 2001 13:13:31 +0000 (13:13 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1311 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCicode.c

index 94c0a3e99dae35eeafcca98a448433928dd6e555..2c95c640a2adced67247922e069d7deb6dc82ffc 100644 (file)
@@ -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