mirror of
https://github.com/CPunch/Cosmo.git
synced 2025-12-18 09:10:58 +00:00
OP_NEWOBJECT uses long operand
This commit is contained in:
@@ -570,7 +570,7 @@ static void object(CParseState *pstate, bool canAssign) {
|
||||
}
|
||||
|
||||
writeu8(pstate, OP_NEWOBJECT);
|
||||
writeu8(pstate, entries);
|
||||
writeu16(pstate, entries);
|
||||
valuePushed(pstate, 1);
|
||||
}
|
||||
|
||||
@@ -753,7 +753,7 @@ static void _class(CParseState *pstate) {
|
||||
}
|
||||
|
||||
writeu8(pstate, OP_NEWOBJECT);
|
||||
writeu8(pstate, entries);
|
||||
writeu16(pstate, entries);
|
||||
valuePushed(pstate, 1);
|
||||
defineVariable(pstate, var, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user