Fix a warning

git-svn-id: svn://10.0.0.236/trunk@37234 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com
1999-06-28 21:26:31 +00:00
parent 6d655c9b68
commit 6923eadd06
2 changed files with 4 additions and 2 deletions

View File

@@ -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));

View File

@@ -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));