* src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
[fw/sdcc] / src / mcs51 / gen.c
index 382ddddd4521f321fd98efc87aa5581a9202f97e..576d529e25ab66efa3e117a09f809707e0f561dc 100644 (file)
@@ -244,9 +244,9 @@ movb (const char *x)
 static void
 movc (const char *s)
 {
-  if (s == zero)
+  if (!strcmp (s, zero))
     CLRC;
-  else if (s == one)
+  else if (!strcmp (s, one))
     SETC;
   else if (strcmp (s, "c"))
     {/* it's not in carry already */