Fix stupid buggy flawed bounds check.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5682 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b332742d6f
commit
7e66608b36
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
|||
#define ENGINEPOINTER(p) ((char*)(p) - progfuncs->funcs.stringtable)
|
||||
#define QCPOINTER(p) (eval_t *)(p->_int+progfuncs->funcs.stringtable)
|
||||
#define QCPOINTERM(p) (eval_t *)((p)+progfuncs->funcs.stringtable)
|
||||
#define QCPOINTERWRITEFAIL(p,sz) ((float)(p)-1 >= prinst.addressableused-1-(sz)) //disallows null writes
|
||||
#define QCPOINTERWRITEFAIL(p,sz) ((unsigned int)(p)-1 >= prinst.addressableused-1-(sz)) //disallows null writes
|
||||
#define QCPOINTERREADFAIL(p,sz) ((unsigned int)(p) >= prinst.addressableused-(sz)) //permits null reads
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue