diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-10 16:03:00 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-10 16:03:00 -0400 |
| commit | 671f81137ee2e5de632526109e02c4b79197e432 (patch) | |
| tree | 36c43d1d4de679d1e2544723ef0b6020df13731d /compile.c | |
| parent | 8d3d5913129a8ede381462d5ad5e98f9c789e5c8 (diff) | |
Make Num32/Num64 literals explicitly typed to aid in macros using
__typeof
Diffstat (limited to 'compile.c')
| -rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1307,7 +1307,7 @@ CORD compile(env_t *env, ast_t *ast) } case Int: return CORD_asprintf("I%ld(%ld)", Match(ast, Int)->bits, Match(ast, Int)->i); case Num: { - return CORD_asprintf(Match(ast, Num)->bits == 64 ? "%.9g" : "(float)%.9g", Match(ast, Num)->n); + return CORD_asprintf(Match(ast, Num)->bits == 64 ? "N64(%.9g)" : "N32(%.9g)", Match(ast, Num)->n); } case Length: { ast_t *expr = Match(ast, Length)->value; |
