]> Git Repo - binutils.git/blobdiff - sim/igen/misc.c
Fix typos in sim sources exposed by static analysis.
[binutils.git] / sim / igen / misc.c
index 71e34fbe302a8b2bf094a481f8b89c9a1f95df0c..6501352fce2d0ea1ef0a8dc684360aff03a062c9 100644 (file)
@@ -102,7 +102,7 @@ a2i (const char *a)
   if (strcmp (a, "true") == 0 || strcmp (a, "TRUE") == 0)
     return 1;
 
-  if (strcmp (a, "false") == 0 || strcmp (a, "false") == 0)
+  if (strcmp (a, "false") == 0 || strcmp (a, "FALSE") == 0)
     return 0;
 
   if (*a == '-')
@@ -118,7 +118,7 @@ a2i (const char *a)
          a += 2;
          base = 16;
        }
-      else if (a[1] == 'b' || a[1] == 'b')
+      else if (a[1] == 'b' || a[1] == 'B')
        {
          a += 2;
          base = 2;
This page took 0.024182 seconds and 4 git commands to generate.