minor refactoring

This commit is contained in:
2023-08-25 23:34:21 -05:00
committed by cpunch
parent c5e4305ef8
commit 3f39211081
3 changed files with 4 additions and 3 deletions

View File

@@ -10,7 +10,9 @@
// realloc wrapper
void *cosmoM_reallocate(CState *state, void *buf, size_t oldSize, size_t newSize)
{
if (buf == NULL) oldSize = 0;
if (buf == NULL)
oldSize = 0;
#ifdef GC_DEBUG
printf("old allocated bytes: %ld\n", state->allocatedBytes);
if (buf) {