Fixing compiler warnings. "Comparison is always false due to limited range of data type". No bug.

r+sr=bzbarsky@mit.edu


git-svn-id: svn://10.0.0.236/trunk@144637 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
caillon%returnzero.com
2003-07-09 06:42:14 +00:00
parent 63348d831a
commit d53c7f8df0
2 changed files with 0 additions and 8 deletions

View File

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