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:
parent
6ca44b48cc
commit
7d7d01aee2
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue