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-22 18:00:59 -07:00
committed by Stephen Williams
parent b36a0a2c54
commit afd225a44d
+7
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;