mirror of https://github.com/CPunch/Cosmo.git
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