inline void
EventQueue::schedule(Event *event, Tick when)
{
+ // Typecasting Tick->Utick here since gcc
+ // complains about signed overflow
assert((UTick)when >= (UTick)curTick());
assert(!event->scheduled());
assert(event->initialized());
inline void
EventQueue::reschedule(Event *event, Tick when, bool always)
{
- assert(when >= curTick());
+ // Typecasting Tick->Utick here since gcc
+ // complains about signed overflow
+ assert((UTick)when >= (UTick)curTick());
assert(always || event->scheduled());
assert(event->initialized());