From 613b3bcb9f75fe1daf32d199c00ab9cf0a8de0a5 Mon Sep 17 00:00:00 2001 From: "timeless@mozdev.org" Date: Wed, 28 Apr 2010 12:46:00 -0700 Subject: [PATCH] Bug 562428 - comparison between signed and unsigned integer expressions in nsSVGGlyphFrame::GetCharNumAtPosition, r=roc --- layout/svg/base/src/nsSVGGlyphFrame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layout/svg/base/src/nsSVGGlyphFrame.cpp b/layout/svg/base/src/nsSVGGlyphFrame.cpp index 41015bac4f6f..7a24260d45c8 100644 --- a/layout/svg/base/src/nsSVGGlyphFrame.cpp +++ b/layout/svg/base/src/nsSVGGlyphFrame.cpp @@ -1307,7 +1307,8 @@ nsSVGGlyphFrame::GetCharNumAtPosition(nsIDOMSVGPoint *point) // iter is the beginning of a cluster (or of the entire run); // look ahead for the next cluster start, then measure the entire cluster PRInt32 limit = i + 1; - while (limit < mTextRun->GetLength() && !mTextRun->IsClusterStart(limit)) { + while (limit < (PRInt32)mTextRun->GetLength() && + !mTextRun->IsClusterStart(limit)) { ++limit; } gfxTextRun::Metrics metrics =