Bug 562428 - comparison between signed and unsigned integer expressions in nsSVGGlyphFrame::GetCharNumAtPosition, r=roc

This commit is contained in:
timeless@mozdev.org 2010-04-28 12:46:00 -07:00
parent 1bd1798a5a
commit 613b3bcb9f

View File

@ -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 =