From 5dcbac3166bcc01cfe2759772a2292492a11328e Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Tue, 28 Jul 2026 08:13:06 +1000 Subject: [PATCH] Remove debug prints, fix offset dumping --- src/New/BytecodeValue.c | 1 - src/Program/preprocess.c | 1 - src/Stringify/Bytecode.c | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/New/BytecodeValue.c b/src/New/BytecodeValue.c index dfdf46a..a5cbca0 100644 --- a/src/New/BytecodeValue.c +++ b/src/New/BytecodeValue.c @@ -66,7 +66,6 @@ static inline GroundBytecodeStruct doStruct(GroundStruct* gs) { GroundObjectField *s, *tmp; HASH_ITER(hh, gs->fields, s, tmp) { - fprintf(stderr, "DEBUG doStruct: field='%s' value.type=%d\n", s->name, s->value.type.type); if (gbs.size >= gbs.capacity) { GroundBytecodeValue* tmp = malloc(sizeof(GroundBytecodeValue) * gbs.capacity * 2); if (tmp == NULL) { diff --git a/src/Program/preprocess.c b/src/Program/preprocess.c index 4f347f3..c382fde 100644 --- a/src/Program/preprocess.c +++ b/src/Program/preprocess.c @@ -250,7 +250,6 @@ static void doStruct(GroundProgram* program, GroundProgram* newProgram, GroundSt if (fnVar != NULL && fnVar->value.type.type == GroundType_Function) { field->value = Ground.Copy.Value(&fnVar->value); - fprintf(stderr, "DEBUG: set field value to Function, field->value.type=%d\n", field->value.type.type); } HASH_ADD_STR(gs.fields, name, field); diff --git a/src/Stringify/Bytecode.c b/src/Stringify/Bytecode.c index 4e402a3..22f75c3 100644 --- a/src/Stringify/Bytecode.c +++ b/src/Stringify/Bytecode.c @@ -306,7 +306,7 @@ char* _GroundStringifyBytecode(GroundBytecode* bytecode) { } for (GroundSize j = 0; j < instruction->args.len; j++) { char buf[32]; - snprintf(buf, 32, "%zu", instruction->args.at[i]); + snprintf(buf, 32, "%zu", instruction->args.at[j]); APPEND_ESTR(estr, buf); APPEND_ESTR(estr, " "); }