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>
Mon, 20 Feb 2017 19:16:51 +0000 (11:16 -0800)
commitbcf5eb5825b1217d74f117b02d09b4ce4b007beb
tree0a94b887624b456127aee901d0364905b5bec5e2
parenta5ef084659205700aab33e81d20fb89833c03249
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