Bugzilla – Bug 2598
Simplify (and clarify) Simulator::Schedule asserts
Last modified: 2018-05-29 22:40:19 UTC
Created attachment 2715 [details] patch In the Simulator::Schedule implementations there are two checks: Time tAbsolute = delay + TimeStep (m_currentTs); NS_ASSERT (tAbsolute.IsPositive ()); NS_ASSERT (tAbsolute >= TimeStep (m_currentTs)); Since m_currentTs is always positive, one is redundant. It is enough to check that delay is positive. Moreover, adding a more explicit error message is needed.
fixed in 13605:16a3cb910bdc