diff --git a/vvp/vvp_island.h b/vvp/vvp_island.h index 6bd890b7e..9841f6bbe 100644 --- a/vvp/vvp_island.h +++ b/vvp/vvp_island.h @@ -165,7 +165,7 @@ class vvp_island_port : public vvp_net_fun_t { inline vvp_vector8_t island_get_value(vvp_net_t*net) { - vvp_island_port*fun = dynamic_cast(net->fun); + const vvp_island_port*fun = dynamic_cast(net->fun); const vvp_wire_vec8*fil = dynamic_cast(net->fil); if (fil == 0) {