diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-21 12:56:30 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-21 12:56:30 +0100 |
commit | 21994864559386f1d11c001d6d27714cbf624a15 (patch) | |
tree | b9a5e76bdc8be9a41970cd6620aab7a3637b7e6a /val.c | |
parent | 671645c370498955eb101695bd9099bf4caf5aea (diff) |
add tests, and make dumping disasm optional
Diffstat (limited to 'val.c')
-rw-r--r-- | val.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |