mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-12-21 22:10:06 +00:00
fix cparse.c gc bug
This commit is contained in:
parent
9f19fd4f31
commit
d41126e75f
@ -481,6 +481,7 @@ static void string(CParseState *pstate, bool canAssign, Precedence prec)
|
||||
{
|
||||
CObjString *strObj =
|
||||
cosmoO_takeString(pstate->state, pstate->previous.start, pstate->previous.length);
|
||||
keepTrackOf(pstate, cosmoV_newRef((CObj *)strObj));
|
||||
writeConstant(pstate, cosmoV_newRef((CObj *)strObj));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user