diff --git a/vpi/v2009_enum.c b/vpi/v2009_enum.c index 71dcc52d9..bdf61e1a9 100644 --- a/vpi/v2009_enum.c +++ b/vpi/v2009_enum.c @@ -170,7 +170,7 @@ static PLI_INT32 ivl_method_next_calltf(PLI_BYTE8*data) } while (! compare_value_eequal(&item_value, &memb_value, use_width)); - if (memb != 0); + if (memb != 0) memb = vpi_scan(enum_list); if (memb != 0) diff --git a/vvp/enum_type.cc b/vvp/enum_type.cc index fb82086ce..f628a43df 100644 --- a/vvp/enum_type.cc +++ b/vvp/enum_type.cc @@ -131,7 +131,7 @@ static void enum_name_get_value(vpiHandle obj, p_vpi_value value) if (ref->val4.size() > 0) vpip_vec4_get_value(ref->val4, ref->val4.size(), false, value); else - vpip_vec2_get_value(ref->val2, ref->val2.size(), true, value); + vpip_vec2_get_value(ref->val2, ref->val2.size(), false, value); } static const struct __vpirt enum_name_rt = { diff --git a/vvp/vpi_priv.cc b/vvp/vpi_priv.cc index 9bce98f6d..01b4519ce 100644 --- a/vvp/vpi_priv.cc +++ b/vvp/vpi_priv.cc @@ -26,6 +26,7 @@ # include # include # include +# include vpi_mode_t vpi_mode_flag = VPI_MODE_NONE; FILE*vpi_trace = 0; @@ -728,7 +729,7 @@ void vpip_vec2_get_value(const vvp_vector2_t&word_val, unsigned width, case vpiObjTypeVal: vp->format = vpiIntVal; case vpiIntVal: - vector2_to_value(word_val, vp->value.integer, true); + vector2_to_value(word_val, vp->value.integer, signed_flag); break; case vpiVectorVal: {