--- a/src/json.c Fri Nov 01 16:21:06 2024 +0100 +++ b/src/json.c Fri Nov 01 17:24:51 2024 +0100 @@ -541,7 +541,7 @@ return ret; } -static CxJsonLiteralType json_reader_literal(CxJson *p) { +static CxJsonLiteral json_reader_literal(CxJson *p) { const char *l = p->reader_token.content; size_t token_len = p->reader_token.length; if (token_len == 4 && !memcmp(l, "true", 4)) { @@ -746,17 +746,17 @@ } case CX_JSON_READER_INTEGER: { v->type = CX_JSON_INTEGER; - v->value.integer.value = p->value_int; + v->value.integer = p->value_int; break; } case CX_JSON_READER_NUMBER: { v->type = CX_JSON_NUMBER; - v->value.number.value = p->value_double; + v->value.number = p->value_double; break; } case CX_JSON_READER_LITERAL: { v->type = CX_JSON_LITERAL; - v->value.literal.literal = json_reader_literal(p); + v->value.literal = json_reader_literal(p); break; } }