mirror of
https://github.com/CPunch/Cosmo.git
synced 2026-02-08 11:40:03 +00:00
fix cosmoB_loadObjLib()
- wrong # of pairs passed to cosmoV_makeTable - minor refactoring of cmem.c:sweep()
This commit is contained in:
@@ -231,11 +231,11 @@ static void traceGrays(CState *state)
|
||||
|
||||
static void sweep(CState *state)
|
||||
{
|
||||
CObj *prev = NULL;
|
||||
CObj *object = state->objects;
|
||||
CObj *prev = NULL, *object = state->objects;
|
||||
|
||||
while (object != NULL) {
|
||||
if (object->isMarked) { // skip over it
|
||||
object->isMarked = false; // rest to white
|
||||
object->isMarked = false; // reset to white
|
||||
prev = object;
|
||||
object = object->next;
|
||||
} else { // free it!
|
||||
|
||||
Reference in New Issue
Block a user