assert fired for unknown reason. Fix behavior in non-assert-enabled

build to do the right thing in that case.
This commit is contained in:
Andy2 2011-07-21 05:07:41 -07:00
parent 5fc7836eca
commit 698d549fd1

View file

@ -249,7 +249,8 @@ utilTimerFired( XW_UtilCtxt* uc, XWTimerReason why, int handle )
AndUtil* util = (AndUtil*)uc;
TimerStorage* timerStorage = &util->timerStorage[why];
XP_ASSERT( handle == (int)timerStorage );
return (*timerStorage->proc)( timerStorage->closure, why );
return (handle == (int)timerStorage)
&& (*timerStorage->proc)( timerStorage->closure, why );
}
static void