Bug 551775: Add unsigned-int cast in NS_ColorNameToRGB to fix build warning. r=roc

This commit is contained in:
Daniel Holbert 2010-03-11 22:03:49 -08:00
parent 7f63efa6df
commit 637993b364

View File

@ -207,7 +207,8 @@ NS_GFX_(PRBool) NS_ColorNameToRGB(const nsAString& aColorName, nscolor* aResult)
PRInt32 id = gColorTable->Lookup(aColorName);
if (eColorName_UNKNOWN < id) {
NS_ASSERTION(id < eColorName_COUNT, "LookupName mess up");
NS_ASSERTION(PRUint32(id) < eColorName_COUNT,
"gColorTable->Lookup messed up");
if (aResult) {
*aResult = kColors[id];
}