aboutsummaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'json.c')
-rw-r--r--json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json.c b/json.c
index 6948edf..cf40634 100644
--- a/json.c
+++ b/json.c
@@ -14,7 +14,7 @@ typedef struct {
} parse_integer_result;
parse_integer_result parse_integer(Arena *a, char *src, uintptr_t pos) {
- int *ints = new (a, int, 16); // TODO: reuse in parsing
+ char ints[16];
int i = 0;
while (isdigit(src[pos + i])) {
int val = (src[pos + i] - '0');