From 0481832a0785fa7acb992c71030185b8c756d0eb Mon Sep 17 00:00:00 2001 From: "jfrancis%netscape.com" Date: Tue, 29 Aug 2000 00:31:53 +0000 Subject: [PATCH] fixing a warning --- content/base/src/nsSelection.cpp | 2 +- layout/base/src/nsSelection.cpp | 2 +- layout/generic/nsSelection.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/base/src/nsSelection.cpp b/content/base/src/nsSelection.cpp index 21b3d91cc1cf..f420e92bf9ca 100644 --- a/content/base/src/nsSelection.cpp +++ b/content/base/src/nsSelection.cpp @@ -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; diff --git a/layout/base/src/nsSelection.cpp b/layout/base/src/nsSelection.cpp index 21b3d91cc1cf..f420e92bf9ca 100644 --- a/layout/base/src/nsSelection.cpp +++ b/layout/base/src/nsSelection.cpp @@ -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; diff --git a/layout/generic/nsSelection.cpp b/layout/generic/nsSelection.cpp index 21b3d91cc1cf..f420e92bf9ca 100644 --- a/layout/generic/nsSelection.cpp +++ b/layout/generic/nsSelection.cpp @@ -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;