Bug 530415. Use NS_MIN/NS_MAX instead of PR_MIN/PR_MAX in spellcheck code. r=bzbarsky

This commit is contained in:
Jae-Seong Lee-Russo 2010-02-22 14:41:19 -05:00
parent 040a986dbb
commit fbccbfa24b

View File

@ -480,7 +480,7 @@ ContainsDOMWordSeparator(nsIDOMNode* aNode, PRInt32 aBeforeOffset,
nsAutoString str;
GetNodeText(aNode, str);
for (PRInt32 i = PR_MIN(aBeforeOffset, PRInt32(str.Length())) - 1; i >= 0; --i) {
for (PRInt32 i = NS_MIN(aBeforeOffset, PRInt32(str.Length())) - 1; i >= 0; --i) {
if (IsDOMWordSeparator(str.CharAt(i))) {
*aSeparatorOffset = i;
return PR_TRUE;