зеркало из https://github.com/mozilla/gecko-dev.git
Fixing compiler warnings. "Comparison is always false due to limited range of data type". No bug.
r+sr=bzbarsky@mit.edu
This commit is contained in:
Родитель
a8ec9ea561
Коммит
281e80fc6b
|
@ -170,13 +170,9 @@ void NS_GetSpecial3DColors(nscolor aResult[2],
|
|||
aResult[0] = NS_RGB(r, g, b);
|
||||
|
||||
r = rb + (f1 * (MAX_COLOR - rb) / 100);
|
||||
if (r > 255) r = 255;
|
||||
g = gb + (f1 * (MAX_COLOR - gb) / 100);
|
||||
if (g > 255) g = 255;
|
||||
b = bb + (f1 * (MAX_COLOR - bb) / 100);
|
||||
if (b > 255) b = 255;
|
||||
aResult[1] = NS_RGB(r, g, b);
|
||||
|
||||
}
|
||||
|
||||
int NS_GetBrightness(PRUint8 aRed, PRUint8 aGreen, PRUint8 aBlue)
|
||||
|
|
|
@ -170,13 +170,9 @@ void NS_GetSpecial3DColors(nscolor aResult[2],
|
|||
aResult[0] = NS_RGB(r, g, b);
|
||||
|
||||
r = rb + (f1 * (MAX_COLOR - rb) / 100);
|
||||
if (r > 255) r = 255;
|
||||
g = gb + (f1 * (MAX_COLOR - gb) / 100);
|
||||
if (g > 255) g = 255;
|
||||
b = bb + (f1 * (MAX_COLOR - bb) / 100);
|
||||
if (b > 255) b = 255;
|
||||
aResult[1] = NS_RGB(r, g, b);
|
||||
|
||||
}
|
||||
|
||||
int NS_GetBrightness(PRUint8 aRed, PRUint8 aGreen, PRUint8 aBlue)
|
||||
|
|
Загрузка…
Ссылка в новой задаче