Remove compile warning.

isprint() is defined to take an int and if it is defined as a macro then
you can get a warning that a char is being used as an array index. This
patch fixes this warning in tgt-vlog95/msic.c
This commit is contained in:
Cary R 2011-07-20 09:29:19 -07:00 committed by Stephen Williams
parent 6ca44b48cc
commit 7d7d01aee2
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ static void emit_number_as_string(ivl_net_const_t net_const)
if (val == '"') fprintf(vlog_out, "\\\"");
else if (val == '\\') fprintf(vlog_out, "\\\\");
/* Print the printable characters. */
else if (isprint(val)) fprintf(vlog_out, "%c", val);
else if (isprint((int)val)) fprintf(vlog_out, "%c", val);
/* Print the non-printable characters as an octal escape. */
else fprintf(vlog_out, "\\%03o", val);
}