mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
Bug 461239. Be a bit more careful with unsigned arithmetic. r+sr=bzbarsky
This commit is contained in:
parent
03e0cb54e4
commit
0143eb7353
@ -1047,7 +1047,7 @@ RuleProcessorData::GetNthIndex(PRBool aIsOfType, PRBool aIsFromEnd,
|
||||
nsIContent * const * stopPtr;
|
||||
if (aIsFromEnd) {
|
||||
stopPtr = curChildPtr - 1;
|
||||
curChildPtr += childCount - 1;
|
||||
curChildPtr = stopPtr + childCount;
|
||||
increment = -1;
|
||||
} else {
|
||||
increment = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user