aboutsummaryrefslogtreecommitdiff
path: root/gprof/sym_ids.c
diff options
context:
space:
mode:
Diffstat (limited to 'gprof/sym_ids.c')
-rw-r--r--gprof/sym_ids.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gprof/sym_ids.c b/gprof/sym_ids.c
index 9c809b6..24814e8 100644
--- a/gprof/sym_ids.c
+++ b/gprof/sym_ids.c
@@ -101,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);
}
@@ -122,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);
}