Skip to content

Commit d1e543c

Browse files
committed
build error fixes
1 parent 69e3804 commit d1e543c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,15 +230,16 @@ static void runFile(const char *path) {
230230

231231
// --- Pipeline Step 3: Bytecode Gen & Execution ---
232232
// Use interpretAST to handle bytecode gen and execution properly using ObjFunction
233-
printf("Executing...\n");
233+
// printf("Executing...\n");
234234
// Use interpretAST to handle bytecode gen and execution properly using ObjFunction
235235
// printf("Executing...\n");
236236
// printf("DEBUG: Calling interpretAST from main...\n");
237237
InterpretResult result = interpretAST(&vm, statements);
238238
// printf("DEBUG: Returned from interpretAST.\n");
239239

240240
if (result != INTERPRET_OK) {
241-
fprintf(stderr, "Execution Failed.\n");
241+
// fprintf(stderr, "Execution Failed.\n");
242+
exit(70);
242243
}
243244

244245
// --- Pipeline Step 4: LLVM CodeGen (Optional/Future) ---

src/stdlib/stdlib_core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ extern Value native_clock(int argCount, Value* args);
3434
static Value native_len(int argCount, Value* args) {
3535
if (argCount < 1) return NUMBER_VAL(0);
3636
if (IS_STRING(args[0])) return NUMBER_VAL((double)AS_STRING(args[0])->length);
37-
if (IS_STRING(args[0])) return NUMBER_VAL((double)AS_STRING(args[0])->length);
3837
if (IS_LIST(args[0])) {
3938
return NUMBER_VAL((double)AS_LIST(args[0])->count);
4039
}

0 commit comments

Comments
 (0)