--- a/src/cx/json.h Tue Oct 22 22:42:48 2024 +0200 +++ b/src/cx/json.h Tue Oct 22 23:10:31 2024 +0200 @@ -121,8 +121,9 @@ int tokenizer_escape; int *states; - int nstates; - int states_alloc; + unsigned nstates; + unsigned states_alloc; + int states_internal[8]; CxJsonToken reader_token; CxJsonReaderType reader_type; @@ -135,12 +136,12 @@ double value_double; CxJsonValue **readvalue_stack; - int readvalue_nelm; - int readvalue_alloc; + unsigned readvalue_nelm; + unsigned readvalue_alloc; CxJsonValue *read_value; int readvalue_initialized; - int reader_array_alloc; + unsigned reader_array_alloc; int error; };