1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

Workaround for a GCC problem.

This commit is contained in:
jules 2012-06-26 20:40:31 +01:00
parent ba9f24681f
commit 3974e09c9f

View file

@ -583,7 +583,7 @@ CodeEditorComponent::ColourScheme CPlusPlusCodeTokeniser::getDefaultColourScheme
CodeEditorComponent::ColourScheme cs;
for (int i = 0; i < numElementsInArray (types); ++i)
for (int i = 0; i < sizeof (types) / sizeof (types[0]); ++i) // (NB: numElementsInArray doesn't work here in GCC4.2)
{
cs.tokenTypeNames.add (types[i].name);
cs.tokenColours.add (Colour (types[i].colour));