* src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c,
[fw/sdcc] / src / SDCCsymt.c
index 1565d6950a47d296459696b6841719849b4e3e32..5bb73d5a97a47b4db30d8fc2cdea951f72e3009f 100644 (file)
@@ -3694,10 +3694,10 @@ newEnumType (symbol *enumlist)
       
   /* Determine the range of the enumerated values */
   sym = enumlist;
-  min = max = (int) floatFromVal (valFromType (sym->type));
+  min = max = (int) ulFromVal (valFromType (sym->type));
   for (sym = sym->next; sym; sym = sym->next)
     {
-      v = (int) floatFromVal (valFromType (sym->type));
+      v = (int) ulFromVal (valFromType (sym->type));
       if (v<min)
         min = v;
       if (v>max)