From 6d57cea923de12c2e1f44c783eaa0eff5a5430ad Mon Sep 17 00:00:00 2001 From: David Webster Date: Thu, 21 Dec 2000 13:57:53 +0000 Subject: [PATCH] ANSI 'C' fix (decs in "for" clauses no longer have any scope outside clause itself) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/palette.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os2/palette.cpp b/src/os2/palette.cpp index bf84af809f..8012364200 100644 --- a/src/os2/palette.cpp +++ b/src/os2/palette.cpp @@ -150,7 +150,8 @@ int wxPalette::GetPixel( // // Now loop through and find the matching entry // - for (int i = 0; i < ulNumEntries; i++) + int i; + for (i = 0; i < ulNumEntries; i++) { if (pualTable[i] == ulRGB) { -- 2.45.2