diff --git a/layout/html/table/src/nsTableFrame.cpp b/layout/html/table/src/nsTableFrame.cpp index d5ddc1e738cf..b39a4bd73f93 100644 --- a/layout/html/table/src/nsTableFrame.cpp +++ b/layout/html/table/src/nsTableFrame.cpp @@ -6853,7 +6853,8 @@ nsTableFrame::PaintBCBorders(nsPresContext* aPresContext, } nscoord x = 0; - for (PRInt32 colX = leftCol; colX != rightCol; colX += colInc) { + PRInt32 colX; + for (colX = leftCol; colX != rightCol; colX += colInc) { nsTableColFrame* colFrame = firstInFlow->GetColFrame(colX); if (!colFrame) ABORT0(); // conservatively estimate the half border widths outside the col diff --git a/layout/tables/nsTableFrame.cpp b/layout/tables/nsTableFrame.cpp index d5ddc1e738cf..b39a4bd73f93 100644 --- a/layout/tables/nsTableFrame.cpp +++ b/layout/tables/nsTableFrame.cpp @@ -6853,7 +6853,8 @@ nsTableFrame::PaintBCBorders(nsPresContext* aPresContext, } nscoord x = 0; - for (PRInt32 colX = leftCol; colX != rightCol; colX += colInc) { + PRInt32 colX; + for (colX = leftCol; colX != rightCol; colX += colInc) { nsTableColFrame* colFrame = firstInFlow->GetColFrame(colX); if (!colFrame) ABORT0(); // conservatively estimate the half border widths outside the col