"Fix" of compiler crash
[fw/sdcc] / 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