forked from Mirrors/tinycc
bound check fix
parent
2d948c7610
commit
5bf9559e9e
4
tcc.c
4
tcc.c
|
@ -3101,7 +3101,9 @@ void gen_op(int op)
|
|||
/* XXX: cast to int ? (long long case) */
|
||||
vpushi(pointed_size(vtop[-1].t));
|
||||
gen_op('*');
|
||||
if (do_bounds_check) {
|
||||
/* if evaluating constant expression, no code should be
|
||||
generated, so no bound check */
|
||||
if (do_bounds_check && !const_wanted) {
|
||||
/* if bounded pointers, we generate a special code to
|
||||
test bounds */
|
||||
if (op == '-') {
|
||||
|
|
Loading…
Reference in New Issue