Fix typo in parsing with trailing commas enabled

This commit is contained in:
rexy712 2020-03-10 15:07:16 -07:00
parent bfd1777fef
commit f2e4593847

View File

@ -555,7 +555,7 @@ RJP_value* rjp_parse(const char* str){
case rjp_yacc_arr_value:
if(cat == rjp_lexcat_cbracket){
irjp_yacc_stack_pop(&state.target_stack);
state->curr = state.curr->parent;
state.curr = state.curr->parent;
}else{
irjp_yacc_stack_set(&state.target_stack, rjp_yacc_arr_comma);
if(!irjp_add_value_to_array(cat, &state))