altos/lisp: Eliminate compiler warning about array bounds at -O3
authorKeith Packard <keithp@keithp.com>
Wed, 16 Nov 2016 22:12:59 +0000 (14:12 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 18 Nov 2016 06:18:39 +0000 (22:18 -0800)
commit2b44fb5002c3e498ba66b60d763c2ac3fef3283e
tree650e22b3d9ed77549de88a3859f85b21a3075fa0
parentd68d89a2b8d2c1ebde355171f99e5205dbd0ea43
altos/lisp: Eliminate compiler warning about array bounds at -O3

Using ao_lisp_pool - 4 caused the compiler to whinge about computing
an address outside the bounds of the array. Sigh. Restructure the code
to do the adjustment-by-4 in the integer computations instead of the
pointer ones.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lisp/ao_lisp.h
src/lisp/ao_lisp_mem.c
src/lisp/ao_lisp_poly.c
src/test/Makefile