From d53c7f8df02ff2286f8d737a0df43cf6170f07cb Mon Sep 17 00:00:00 2001 From: "caillon%returnzero.com" Date: Wed, 9 Jul 2003 06:42:14 +0000 Subject: [PATCH] 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 --- mozilla/layout/base/nsCSSColorUtils.cpp | 4 ---- mozilla/layout/html/style/src/nsCSSColorUtils.cpp | 4 ---- 2 files changed, 8 deletions(-) diff --git a/mozilla/layout/base/nsCSSColorUtils.cpp b/mozilla/layout/base/nsCSSColorUtils.cpp index 17a8db0f683..5cdfc2caa16 100644 --- a/mozilla/layout/base/nsCSSColorUtils.cpp +++ b/mozilla/layout/base/nsCSSColorUtils.cpp @@ -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) diff --git a/mozilla/layout/html/style/src/nsCSSColorUtils.cpp b/mozilla/layout/html/style/src/nsCSSColorUtils.cpp index 17a8db0f683..5cdfc2caa16 100644 --- a/mozilla/layout/html/style/src/nsCSSColorUtils.cpp +++ b/mozilla/layout/html/style/src/nsCSSColorUtils.cpp @@ -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)