diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-23 11:38:54 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-23 11:38:54 -0400 |
| commit | dceb9255736c69538293ee551272cda1b03a9fd3 (patch) | |
| tree | fdb4e6947b80db01fa85b6de0c15670dddf83c52 /repl.c | |
| parent | ad51b208b4924d04f1d6a804178a67994b4f9e59 (diff) | |
Bugfix for parsing ints
Diffstat (limited to 'repl.c')
| -rw-r--r-- | repl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -353,7 +353,7 @@ void eval(env_t *env, ast_t *ast, void *dest) case Int: { if (!dest) return; switch (Match(ast, Int)->bits) { - case 0: *(Int_t*)dest = Int$from_text(Match(ast, Int)->str); break; + case 0: *(Int_t*)dest = Int$from_text(Match(ast, Int)->str, NULL); break; case 64: *(int64_t*)dest = Int64$from_text(Match(ast, Int)->str, NULL); break; case 32: *(int32_t*)dest = Int32$from_text(Match(ast, Int)->str, NULL); break; case 16: *(int16_t*)dest = Int16$from_text(Match(ast, Int)->str, NULL); break; |
