mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 19:41:49 +00:00
Bug 588640 - comparison between signed and unsigned integer expressions in nsAttrValue::AtomAt; r=Olli.Pettay approval2.0=jst
This commit is contained in:
parent
4751e14e59
commit
eb2d355feb
@ -525,7 +525,7 @@ nsIAtom*
|
|||||||
nsAttrValue::AtomAt(PRInt32 aIndex) const
|
nsAttrValue::AtomAt(PRInt32 aIndex) const
|
||||||
{
|
{
|
||||||
NS_PRECONDITION(aIndex >= 0, "Index must not be negative");
|
NS_PRECONDITION(aIndex >= 0, "Index must not be negative");
|
||||||
NS_PRECONDITION(GetAtomCount() > aIndex, "aIndex out of range");
|
NS_PRECONDITION(GetAtomCount() > PRUint32(aIndex), "aIndex out of range");
|
||||||
|
|
||||||
if (BaseType() == eAtomBase) {
|
if (BaseType() == eAtomBase) {
|
||||||
return GetAtomValue();
|
return GetAtomValue();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user