diff options
-rw-r--r-- | src/systemc/tlm_core/2/quantum/global_quantum.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemc/tlm_core/2/quantum/global_quantum.cc b/src/systemc/tlm_core/2/quantum/global_quantum.cc index 7ba44e3cb..69a68aa9c 100644 --- a/src/systemc/tlm_core/2/quantum/global_quantum.cc +++ b/src/systemc/tlm_core/2/quantum/global_quantum.cc @@ -40,7 +40,8 @@ tlm_global_quantum::compute_local_quantum() if (m_global_quantum != sc_core::SC_ZERO_TIME) { const sc_core::sc_time current = sc_core::sc_time_stamp(); const sc_core::sc_time g_quant = m_global_quantum; - return g_quant - (current % g_quant); + return sc_core::sc_time::from_value( + g_quant.value() - (current.value() % g_quant.value())); } else { return sc_core::SC_ZERO_TIME; } |