1
0
forked from Mirror/wren

wren: Remove a magic number in the compiler. (#757)

This commit is contained in:
Michel Hermier
2020-06-14 06:24:37 +02:00
committed by GitHub
parent 7c357e1b02
commit b5894c6ff5

View File

@ -2088,7 +2088,7 @@ static void field(Compiler* compiler, bool canAssign)
{
// Initialize it with a fake value so we can keep parsing and minimize the
// number of cascaded errors.
int field = 255;
int field = MAX_FIELDS;
ClassInfo* enclosingClass = getEnclosingClass(compiler);