mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 551775: Add unsigned-int cast in NS_ColorNameToRGB to fix build warning. r=roc
This commit is contained in:
parent
7f63efa6df
commit
637993b364
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user