mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-28 16:53:45 +02:00
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:
committed by
Stephen Williams
parent
b36a0a2c54
commit
afd225a44d
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user