diff --git a/Changes b/Changes index 45fe14e86..09ba95cbd 100644 --- a/Changes +++ b/Changes @@ -16,6 +16,8 @@ The contributors that suggested a given feature are shown in []. Thanks! **** Fix false warning on backward indexing, bug1507. [Hao Shi] +**** Fix vpiType accessor, bug1509. [Stefan Wallentowitz] + * Verilator 4.018 2019-08-29 diff --git a/include/verilated_vpi.cpp b/include/verilated_vpi.cpp index 1d37151e7..60e17ec36 100644 --- a/include/verilated_vpi.cpp +++ b/include/verilated_vpi.cpp @@ -1154,7 +1154,7 @@ PLI_INT32 vpi_get(PLI_INT32 property, vpiHandle object) { return VL_TIME_PRECISION; } case vpiType: { - VerilatedVpio* vop = VerilatedVpioVar::castp(object); + VerilatedVpio* vop = VerilatedVpio::castp(object); if (VL_UNLIKELY(!vop)) return 0; return vop->type(); }