[qfcc] Return correct value for is_const_ptr

It really helps if the logic is not inverted.
This commit is contained in:
Bill Currie 2020-03-16 20:21:07 +09:00
parent db06300ddd
commit 69924fe717

View file

@ -710,9 +710,9 @@ is_const_ptr (expr_t *e)
if ((e->type != ex_value || e->e.value->lltype != ev_pointer) if ((e->type != ex_value || e->e.value->lltype != ev_pointer)
|| !(POINTER_VAL (e->e.value->v.pointer) >= 0 || !(POINTER_VAL (e->e.value->v.pointer) >= 0
&& POINTER_VAL (e->e.value->v.pointer) < 65536)) { && POINTER_VAL (e->e.value->v.pointer) < 65536)) {
return 1; return 0;
} }
return 0; return 1;
} }
static __attribute__((pure)) int static __attribute__((pure)) int