From 21994864559386f1d11c001d6d27714cbf624a15 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Fri, 21 Jun 2024 12:56:30 +0100 Subject: add tests, and make dumping disasm optional --- val.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'val.c') diff --git a/val.c b/val.c index 18d0ffa..8e351ff 100644 --- a/val.c +++ b/val.c @@ -54,7 +54,7 @@ void print_val(Val v) { printf("nil"); break; case TY_NUM: - printf("%f",AS_NUM(v)); + printf("%g",AS_NUM(v)); break; case TY_BOOL: printf("%s",AS_BOOL(v) ? "true" : "false"); -- cgit v1.2.3