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
This commit is contained in:
@@ -150,7 +150,8 @@ int wxPalette::GetPixel(
|
|||||||
//
|
//
|
||||||
// Now loop through and find the matching entry
|
// 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)
|
if (pualTable[i] == ulRGB)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user