Fixed multidimensional array definitions.

This commit is contained in:
Chronos Ouroboros 2019-01-08 12:27:41 -02:00 committed by drfrag
parent 494dc20088
commit e9ca5d6eff

View file

@ -1844,6 +1844,17 @@ PType *ZCCCompiler::ResolveArraySize(PType *baseType, ZCC_Expression *arraysize,
return baseType;
}
if (mVersion >= MakeVersion(3, 7, 2))
{
TArray<ZCC_Expression *> fixedIndices;
for (auto node : indices)
{
fixedIndices.Insert (0, node);
}
indices = std::move(fixedIndices);
}
FCompileContext ctx(OutNamespace, cls, false);
for (auto node : indices)
{