fixing a warning

This commit is contained in:
jfrancis%netscape.com 2000-08-29 00:31:53 +00:00
parent 20ec8f9da1
commit 0481832a07
3 changed files with 3 additions and 3 deletions

View File

@ -5376,7 +5376,7 @@ nsDOMSelection::GetPromotedPoint(Endpoint aWhere, nsIDOMNode *aNode, PRInt32 aOf
// if not at end of text node, we are done
PRUint32 len;
GetLengthOfDOMNode(aNode, len);
if (offset < len) return NS_OK;
if (offset < (PRInt32)len) return NS_OK;
// else
res = GetNodeLocation(aNode, &parent, &offset);
if (NS_FAILED(res)) return res;

View File

@ -5376,7 +5376,7 @@ nsDOMSelection::GetPromotedPoint(Endpoint aWhere, nsIDOMNode *aNode, PRInt32 aOf
// if not at end of text node, we are done
PRUint32 len;
GetLengthOfDOMNode(aNode, len);
if (offset < len) return NS_OK;
if (offset < (PRInt32)len) return NS_OK;
// else
res = GetNodeLocation(aNode, &parent, &offset);
if (NS_FAILED(res)) return res;

View File

@ -5376,7 +5376,7 @@ nsDOMSelection::GetPromotedPoint(Endpoint aWhere, nsIDOMNode *aNode, PRInt32 aOf
// if not at end of text node, we are done
PRUint32 len;
GetLengthOfDOMNode(aNode, len);
if (offset < len) return NS_OK;
if (offset < (PRInt32)len) return NS_OK;
// else
res = GetNodeLocation(aNode, &parent, &offset);
if (NS_FAILED(res)) return res;