]> git.gag.com Git - fw/sdcc/blobdiff - src/SDCCsymt.c
* src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
[fw/sdcc] / src / SDCCsymt.c
index c085bc09f2766a2cd5e15c16c2ac64ca71dbbe55..7b3b6f584df7c4e99041aa8523d06b735667f87a 100644 (file)
@@ -1416,13 +1416,13 @@ computeType (sym_link * type1, sym_link * type2)
   reType = getSpec (rType);
 
   /* if either of them unsigned but not val then make this unsigned */
-  if (((!IS_LITERAL(type1) && SPEC_USIGN (etype1)) || 
-       (!IS_LITERAL(type2) && SPEC_USIGN (etype2))) && 
+  if (((/*!IS_LITERAL(type1) &&*/ SPEC_USIGN (etype1)) ||
+       (/*!IS_LITERAL(type2) &&*/ SPEC_USIGN (etype2))) &&
       !IS_FLOAT (reType))
     SPEC_USIGN (reType) = 1;
   else
     SPEC_USIGN (reType) = 0;
-  
+
   /* if result is a literal then make not so */
   if (IS_LITERAL (reType))
     SPEC_SCLS (reType) = S_REGISTER;
@@ -1433,7 +1433,7 @@ computeType (sym_link * type1, sym_link * type2)
 /*--------------------------------------------------------------------*/
 /* compareType - will do type check return 1 if match, -1 if castable */
 /*--------------------------------------------------------------------*/
-int 
+int
 compareType (sym_link * dest, sym_link * src)
 {
   if (!dest && !src)