From 8872bbf9b38f2552cfd9be2192be19089ade6539 Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 16 Mar 2010 17:13:51 -0700 Subject: [PATCH] Fix optimization dependent bug. --- vpi/sys_display.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vpi/sys_display.c b/vpi/sys_display.c index 2bdcffc1d..7fccdfb99 100644 --- a/vpi/sys_display.c +++ b/vpi/sys_display.c @@ -1907,8 +1907,7 @@ static PLI_INT32 sys_severity_calltf(PLI_BYTE8*name) /* convert name to upper and drop $ to get severity string */ sstr = strdup(name) + 1; - t = sstr; - while (*t) *t++ = toupper(*t); + for (t=sstr; *t; t+=1) *t = toupper(*t); scope = vpi_handle(vpiScope, callh); assert(scope);