diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-12-08 19:44:03 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-12-08 19:44:03 -0500 |
commit | b1a19ee1531637e806dc20373830106b448337fd (patch) | |
tree | 31916be62105e40f1bac606e15898805692e1d9b /eval.c | |
parent | deaaa5fc851e93f808b21482fb38570a6a4eee7c (diff) |
changed post to preincrement (it actually does make a difference with tcc)
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1232,7 +1232,7 @@ static bool eval_expr(Evaluator *ev, Expression *e, Value *v) { if (!eval_block(ev, &ea->body, &e->type, v)) return false; if (index_val) { - index_val->i64++; + ++index_val->i64; } eval_numerical_bin_op(x, &ea->type, BINARY_ADD, stepval, ea->range.stepval ? &ea->type : &i64t, &x, &ea->type); } @@ -1292,7 +1292,7 @@ static bool eval_expr(Evaluator *ev, Expression *e, Value *v) { eval_deref(value_val, ptr, &ea->type); if (!eval_block(ev, &ea->body, &e->type, v)) return false; - index_val->i64++; + ++index_val->i64; } } each_exit(e); @@ -1421,7 +1421,7 @@ static bool eval_expr(Evaluator *ev, Expression *e, Value *v) { IdentDecl *id = ident_decl(*i); copy_val(NULL, &id->val, &args[arg], type); id->flags |= IDECL_HAS_VAL; - arg++; + ++arg; } } arr_foreach(fn->ret_decls, Declaration, d) { @@ -1441,7 +1441,7 @@ static bool eval_expr(Evaluator *ev, Expression *e, Value *v) { id->flags |= IDECL_HAS_VAL; id->val = val_zero(type); } - idx++; + ++idx; } } arr_clear(&args); @@ -1467,7 +1467,7 @@ static bool eval_expr(Evaluator *ev, Expression *e, Value *v) { void *to_free = val_ptr_to_free(element, type); if (to_free) *(void **)arr_add(&ev->to_free) = to_free; - i++; + ++i; } } if (arr_len(tuple) == 1) { @@ -1569,7 +1569,7 @@ static bool eval_decl(Evaluator *ev, Declaration *d) { id->val = val_zero(type); } } - index++; + ++index; id->flags |= IDECL_HAS_VAL; } } |