diff --git a/include/verilated_types.h b/include/verilated_types.h index da7452747f..0f9ea4a024 100644 --- a/include/verilated_types.h +++ b/include/verilated_types.h @@ -545,7 +545,7 @@ class VlQueue final { // function void q.insert(index, value); void insert(int32_t index, const T_Value& value) { - if (VL_UNLIKELY(index < 0 || index > m_deque.size())) { return; } + if (VL_UNLIKELY(index < 0 || index > m_deque.size())) return; m_deque.insert(m_deque.begin() + index, value); }