From 82606ec63de7def15bcbd833d1b389fb4bda2161 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Tue, 14 Feb 2012 10:53:09 -0800 Subject: [PATCH] Bug 727163 - fix compiler warnings in accessible/; r=askalski --- accessible/src/base/TextUpdater.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/accessible/src/base/TextUpdater.cpp b/accessible/src/base/TextUpdater.cpp index f80255a66d69..7b3752dd78a2 100644 --- a/accessible/src/base/TextUpdater.cpp +++ b/accessible/src/base/TextUpdater.cpp @@ -94,8 +94,8 @@ TextUpdater::DoUpdate(const nsAString& aNewText, const nsAString& aOldText, skipEnd++; } - PRInt32 strLen1 = oldLen - aSkipStart - skipEnd; - PRInt32 strLen2 = newLen - aSkipStart - skipEnd; + PRUint32 strLen1 = oldLen - aSkipStart - skipEnd; + PRUint32 strLen2 = newLen - aSkipStart - skipEnd; const nsAString& str1 = Substring(aOldText, aSkipStart, strLen1); const nsAString& str2 = Substring(aNewText, aSkipStart, strLen2); @@ -187,7 +187,7 @@ TextUpdater::ComputeTextChangeEvents(const nsAString& aStr1, PRInt32 colLen = colEnd + 1; PRUint32* row = aEntries + rowIdx * colLen; - PRInt32 dist = row[colIdx]; // current Levenshtein distance + PRUint32 dist = row[colIdx]; // current Levenshtein distance while (rowIdx && colIdx) { // stop when we can't move diagonally if (aStr1[colIdx - 1] == aStr2[rowIdx - 1]) { // match if (rowIdx < rowEnd) { // deal with any pending insertion