diff --git a/vvp/vvp_net.cc b/vvp/vvp_net.cc index 90dfa0d7c..6f1438e88 100644 --- a/vvp/vvp_net.cc +++ b/vvp/vvp_net.cc @@ -2726,7 +2726,7 @@ vvp_bit4_t compare_gtge(const vvp_vector4_t&lef, const vvp_vector4_t&rig, return BIT4_X; // Check for X/Z in the right operand - if (lef.has_xz()) + if (rig.has_xz()) return BIT4_X; for (unsigned idx = lef.size() ; idx > rig.size() ; idx -= 1) {