mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
fixing a warning
This commit is contained in:
parent
20ec8f9da1
commit
0481832a07
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user