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

This commit is contained in:
brendan%mozilla.org 2002-05-01 23:34:18 +00:00
Родитель 9ed5f80780
Коммит f4ef397c40
1 изменённых файлов: 2 добавлений и 8 удалений

Просмотреть файл

@ -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
{