Use unsigned type (at brendan's suggestion) for perhaps-more-efficient modulus. r+sr=brendan b=188761

This commit is contained in:
dbaron%dbaron.org 2003-07-24 21:42:53 +00:00
Родитель 71e83f7596
Коммит 995c801fa9
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -245,12 +245,12 @@ protected:
protected:
static nsBlinkTimer* sTextBlinker;
static PRInt32 sState; // 0-2 == on; 3 == off
static PRUint32 sState; // 0-2 == on; 3 == off
};
nsBlinkTimer* nsBlinkTimer::sTextBlinker = nsnull;
PRBool nsBlinkTimer::sState = 0;
PRUint32 nsBlinkTimer::sState = 0;
#ifdef NOISY_BLINK
static PRTime gLastTick;

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

@ -245,12 +245,12 @@ protected:
protected:
static nsBlinkTimer* sTextBlinker;
static PRInt32 sState; // 0-2 == on; 3 == off
static PRUint32 sState; // 0-2 == on; 3 == off
};
nsBlinkTimer* nsBlinkTimer::sTextBlinker = nsnull;
PRBool nsBlinkTimer::sState = 0;
PRUint32 nsBlinkTimer::sState = 0;
#ifdef NOISY_BLINK
static PRTime gLastTick;