patched with list validation
This commit is contained in:
parent
446adfc482
commit
f6c01b3f48
@ -3664,6 +3664,7 @@ int mb_pop_value(mb_interpreter_t* s, void** l, mb_value_t* val) {
|
||||
|
||||
running = (_running_context_t*)(s->running_context);
|
||||
|
||||
if(!_ls_empty(running->in_neg_expr))
|
||||
inep = (int*)_ls_back(running->in_neg_expr)->data;
|
||||
|
||||
val_ptr = &val_obj;
|
||||
@ -3681,7 +3682,7 @@ int mb_pop_value(mb_interpreter_t* s, void** l, mb_value_t* val) {
|
||||
_ls_pushback(running->temp_values, val_ptr);
|
||||
}
|
||||
|
||||
if(running->no_eat_comma_mark < _NO_EAT_COMMA && !(*inep)) {
|
||||
if(running->no_eat_comma_mark < _NO_EAT_COMMA && (inep && !(*inep))) {
|
||||
if(ast && ((_object_t*)(ast->data))->type == _DT_SEP && ((_object_t*)(ast->data))->data.separator == ',') {
|
||||
ast = ast->next;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user