diff --git a/gfx/src/gtk/nsFontMetricsXft.cpp b/gfx/src/gtk/nsFontMetricsXft.cpp index 3324a30599c..744d620ec53 100644 --- a/gfx/src/gtk/nsFontMetricsXft.cpp +++ b/gfx/src/gtk/nsFontMetricsXft.cpp @@ -944,8 +944,7 @@ nsFontMetricsXft::FindFont(PRUint32 aChar) } // Now check the remaining fonts - - for (PRInt32 end = mLoadedFonts.Count(); i < end; ++i) { + for (; i < mLoadedFonts.Count(); ++i) { nsFontXft *font = (nsFontXft *)mLoadedFonts.ElementAt(i); if (font->HasChar(aChar)) { if (font->GetXftFont())