mirror of
https://github.com/CPunch/Cosmo.git
synced 2026-01-10 08:10:47 +00:00
fixed segfault on parser objection
This commit is contained in:
@@ -23,6 +23,9 @@ CObj *cosmoO_allocateObject(CState *state, size_t sz, CObjType type) {
|
||||
|
||||
obj->next = state->objects;
|
||||
state->objects = obj;
|
||||
#ifdef GC_DEBUG
|
||||
printf("allocated %p with OBJ_TYPE %d\n", obj, type);
|
||||
#endif
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user