Followup fix for 138791, neil@parkwaycc.co.uk's superior bit-fu (r=rjesup, sr=waterson, a=asa).

git-svn-id: svn://10.0.0.236/trunk@120488 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org
2002-05-01 23:35:46 +00:00
parent 70044a777d
commit 5665856b96

View File

@@ -79,14 +79,8 @@ enum {
// Maximum possible delay (XXX rework to use ms rather than interval ticks).
#define DELAY_INTERVAL_MAX (DELAY_INTERVAL_LIMIT - 1)
// Is interval-time t1 less than t2, even if t1 has wrapped PRIntervalTime?
static inline PRBool
TIMER_LESS_THAN(PRIntervalTime t, PRIntervalTime u)
{
return (t < u)
? u - t < DELAY_INTERVAL_LIMIT
: t - u > DELAY_INTERVAL_LIMIT;
}
// Is interval-time t less than u, even if t has wrapped PRIntervalTime?
#define TIMER_LESS_THAN(t, u) ((t) - (u) > DELAY_INTERVAL_LIMIT)
class nsTimerImpl : public nsITimer, public nsIScriptableTimer
{