From 7d7d01aee2841ef0821d35f8f7b62ff88e177565 Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 20 Jul 2011 09:29:19 -0700 Subject: [PATCH] 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 --- tgt-vlog95/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgt-vlog95/misc.c b/tgt-vlog95/misc.c index aeb728cad..f94dc0f0b 100644 --- a/tgt-vlog95/misc.c +++ b/tgt-vlog95/misc.c @@ -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); }