From 4194994721a217de4287af8a59b35b551a5e9455 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 4 Nov 2010 16:45:39 -0400 Subject: [PATCH] Bug 606717 - Comparison between signed and unsigned integers in nsTextEditRules::CollapseSelectionToTrailingBRIfNeeded; r=ehsan a=bsmedberg --- editor/libeditor/text/nsTextEditRules.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/libeditor/text/nsTextEditRules.cpp b/editor/libeditor/text/nsTextEditRules.cpp index 20606a84ae11..44e50e03ee1b 100644 --- a/editor/libeditor/text/nsTextEditRules.cpp +++ b/editor/libeditor/text/nsTextEditRules.cpp @@ -504,7 +504,8 @@ nsTextEditRules::CollapseSelectionToTrailingBRIfNeeded(nsISelection* aSelection) NS_ENSURE_SUCCESS(res, res); // nothing to do if we're not at the end of the text node - if (selOffset != length) return NS_OK; + if (selOffset != PRInt32(length)) + return NS_OK; nsCOMPtr parentNode; PRInt32 parentOffset;