Fix optimization dependent bug.

This commit is contained in:
Cary R 2010-03-16 17:13:51 -07:00 committed by Stephen Williams
parent 07bedc4e35
commit 8872bbf9b3
1 changed files with 1 additions and 2 deletions

View File

@ -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);