Stale, not applicable to current cygwin
[fw/sdcc] / src / SDCCval.c
index 329f51c7fd8424f30892113e95908eb0688f1637..c197f817a803e9a5bcfd6e5bdfb3a307196e2a0e 100644 (file)
@@ -225,7 +225,7 @@ valueFromLit (double lit)
       return constVal (buffer);
     }
 
-  sprintf (buffer, "%lf", lit);
+  sprintf (buffer, "%f", lit);
   return constFloatVal (buffer);
 }
 
@@ -326,9 +326,9 @@ constVal (char *s)
        SPEC_CVAL (val->type).v_int = sval;
     }
 
-  // check the size and make it a short if required
+  // check the size and make it a char if possible
   if (sval < 256)
-    SPEC_SHORT (val->etype) = 1;
+    SPEC_NOUN (val->etype) = V_CHAR;
 
   return val;
 
@@ -392,7 +392,7 @@ char octalEscape (char **str) {
 }
 
 /*! 
-  /fn void copyStr (char *dest, char *src)
+  /fn int copyStr (char *dest, char *src)
   
   Copies a source string to a dest buffer interpreting escape sequences
   and special characters