summaryrefslogtreecommitdiff
path: root/xs_json.h
diff options
context:
space:
mode:
Diffstat (limited to 'xs_json.h')
-rw-r--r--xs_json.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xs_json.h b/xs_json.h
index 3a7742d..b65e825 100644
--- a/xs_json.h
+++ b/xs_json.h
@@ -76,7 +76,7 @@ static void _xs_json_dump(const xs_val *data, int level, int indent, FILE *f)
76{ 76{
77 int c = 0; 77 int c = 0;
78 int ct = 0; 78 int ct = 0;
79 xs_val *v; 79 const xs_val *v;
80 80
81 switch (xs_type(data)) { 81 switch (xs_type(data)) {
82 case XSTYPE_NULL: 82 case XSTYPE_NULL:
@@ -116,7 +116,7 @@ static void _xs_json_dump(const xs_val *data, int level, int indent, FILE *f)
116 case XSTYPE_DICT: 116 case XSTYPE_DICT:
117 fputc('{', f); 117 fputc('{', f);
118 118
119 xs_str *k; 119 const xs_str *k;
120 120
121 while (xs_dict_next(data, &k, &v, &ct)) { 121 while (xs_dict_next(data, &k, &v, &ct)) {
122 if (c != 0) 122 if (c != 0)