aboutsummaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'json.h')
-rw-r--r--json.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/json.h b/json.h
index 5f2f4c0..fc2dcfe 100644
--- a/json.h
+++ b/json.h
@@ -7,7 +7,7 @@
typedef struct {
Vec keys; // Vec<Str>
Vec values; // Vec<JSON>
- ptrdiff_t len;
+ size len;
} JSONObject;
typedef struct {
int *integer;
@@ -16,6 +16,6 @@ typedef struct {
JSONObject *object;
} JSON;
JSON* JSONObject_get(JSONObject *obj, Str key);
-JSON JSON_parse(Arena *a, char *src);
+JSON JSON_parse(Arena *a, byte *src);
JSON JSON_Int(Arena *a, int val);
#endif