Fix a warning
git-svn-id: svn://10.0.0.236/trunk@37234 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -323,7 +323,8 @@ nsHTMLEditRules::WillDeleteSelection(nsIDOMSelection *aSelection, nsIEditor::ECo
|
||||
}
|
||||
|
||||
// at end of text node and deleted?
|
||||
if ((offset == strLength) && (aAction == nsIEditor::eDeleteRight))
|
||||
if ((offset == (PRInt32)strLength)
|
||||
&& (aAction == nsIEditor::eDeleteRight))
|
||||
{
|
||||
nsCOMPtr<nsIDOMNode> nextNode;
|
||||
res = mEditor->GetNextNode(node, PR_TRUE, getter_AddRefs(nextNode));
|
||||
|
||||
@@ -323,7 +323,8 @@ nsHTMLEditRules::WillDeleteSelection(nsIDOMSelection *aSelection, nsIEditor::ECo
|
||||
}
|
||||
|
||||
// at end of text node and deleted?
|
||||
if ((offset == strLength) && (aAction == nsIEditor::eDeleteRight))
|
||||
if ((offset == (PRInt32)strLength)
|
||||
&& (aAction == nsIEditor::eDeleteRight))
|
||||
{
|
||||
nsCOMPtr<nsIDOMNode> nextNode;
|
||||
res = mEditor->GetNextNode(node, PR_TRUE, getter_AddRefs(nextNode));
|
||||
|
||||
Reference in New Issue
Block a user