Work around g++ bug on OSX.

This commit is contained in:
Christian Speckner 2017-09-25 22:06:21 +02:00
parent e7b732b115
commit b3228aaad7
1 changed files with 3 additions and 2 deletions

View File

@ -38,8 +38,9 @@ DrawCounterDecodes& DrawCounterDecodes::DrawCounterDecodes::get()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DrawCounterDecodes::DrawCounterDecodes()
{
for (uInt8 *decodes : {myDecodes0, myDecodes1, myDecodes2, myDecodes3,
myDecodes4, myDecodes6})
uInt8 *decodeTables[] = {myDecodes0, myDecodes1, myDecodes2, myDecodes3, myDecodes4, myDecodes6};
for (uInt8 *decodes : decodeTables)
{
memset(decodes, 0, 160);
decodes[156] = 1;