diff --git a/include/verilated_imp.h b/include/verilated_imp.h index e81f5e908..6102425f9 100644 --- a/include/verilated_imp.h +++ b/include/verilated_imp.h @@ -595,7 +595,7 @@ private: } } else { // MCD Case - for (int i = 0; (fdi != 0) && (i < fp.capacity()); ++i, fdi >>= 1) { + for (size_t i = 0; (fdi != 0) && (i < fp.capacity()); ++i, fdi >>= 1) { if (fdi & VL_MASK_I(1)) fp.push_back(s_s.v.m_fdps[i]); } }