mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
[qfcc] Return correct value for is_const_ptr
It really helps if the logic is not inverted.
This commit is contained in:
parent
db06300ddd
commit
69924fe717
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue