mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-12-22 22:40:03 +00:00
fix cparse.c gc bug
This commit is contained in:
parent
1408a07b23
commit
6ed5589513
@ -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