Forward fit sky-branch updates to devo.
[deliverable/binutils-gdb.git] / gprof / sym_ids.c
index efee6ef30a1d9d8a54649414c6f5803ad897f770..24814e8a66ef77c88647519708ca9ba04a094609 100644 (file)
@@ -1,3 +1,5 @@
+#include <ctype.h>
+
 #include "libiberty.h"
 #include "cg_arcs.h"
 #include "sym_ids.h"
@@ -99,7 +101,7 @@ DEFUN (parse_spec, (spec, sym), char *spec AND Sym * sym)
       spec = colon + 1;
       if (strlen (spec))
        {
-         if (isdigit (spec[0]))
+         if (isdigit ((unsigned char) spec[0]))
            {
              sym->line_num = atoi (spec);
            }
@@ -120,7 +122,7 @@ DEFUN (parse_spec, (spec, sym), char *spec AND Sym * sym)
              sym->file = &non_existent_file;
            }
        }
-      else if (isdigit (*spec))
+      else if (isdigit ((unsigned char) *spec))
        {
          sym->line_num = atoi (spec);
        }
This page took 0.024589 seconds and 4 git commands to generate.