Fix C++11 warnings

This commit is contained in:
Wilson Snyder
2022-11-12 16:03:13 -05:00
parent eaf09ba0e7
commit 218dd4322b
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -2398,7 +2398,9 @@ void VerilatedContext::timeunit(int value) VL_MT_SAFE {
}
void VerilatedContext::timeprecision(int value) VL_MT_SAFE {
if (value < 0) value = -value; // Stored as 0..15
#ifdef SYSTEMC_VERSION
int sc_prec = 99;
#endif
{
const VerilatedLockGuard lock{m_mutex};
m_s.m_timeprecision = value;