Browse Source

Fix while loop abort condition

1.0.0
Georg Hopp 10 years ago
parent
commit
64d1eb9cee
  1. 2
      src/event_dispatcher_start.c

2
src/event_dispatcher_start.c

@ -73,7 +73,7 @@ TR_eventDispatcherStart(TR_EventDispatcher this)
size_t idx = TR_queueFirst(handler_queue); size_t idx = TR_queueFirst(handler_queue);
TR_EventDone done = TR_EVENT_PENDING; TR_EventDone done = TR_EVENT_PENDING;
while (idx != TR_queueLast(handler_queue)) {
while (idx != TR_queueLast(handler_queue) + 1) {
TR_EventHandler handler = handler_queue->data[idx]; TR_EventHandler handler = handler_queue->data[idx];
TR_EventDone this_done; TR_EventDone this_done;

Loading…
Cancel
Save