Changes to vvp/vpi_vthr_vector.cc

Changed for "Microsoft Visual Studio Express 2015 RC Web" so gold files would match.
This commit is contained in:
Frederick C. Kurz 2015-07-10 12:50:40 -04:00 committed by Stephen Williams
parent b36a0a2c54
commit afd225a44d
1 changed files with 7 additions and 0 deletions

View File

@ -115,7 +115,14 @@ static void vthr_real_get_value(vpiHandle ref, s_vpi_value*vp)
break;
case vpiDecStrVal:
#if !defined(__GNUC__)
if (isnan(val))
sprintf(rbuf, "%s", "nan");
else
sprintf(rbuf, "%0.0f", val);
#else
sprintf(rbuf, "%0.0f", val);
#endif
vp->value.str = rbuf;
break;