RTL VM: Avoid signed overflows in 'add1' and 'sub1'.
authorMark H Weaver <mhw@netris.org>
Tue, 6 Aug 2013 21:00:23 +0000 (17:00 -0400)
committerMark H Weaver <mhw@netris.org>
Tue, 6 Aug 2013 21:00:23 +0000 (17:00 -0400)
commitd2295ba5716b60a5f0b28b1b91fd2ed3cf1192f5
treeebe1383ae6d82f2e5ced130c5506c7a80c5b2193
parent0bd659658ba2a2b6dab9cb75f693818e5ce8241b
RTL VM: Avoid signed overflows in 'add1' and 'sub1'.

* libguile/vm-engine.c (INUM_MIN, INUM_MAX): Redefine without making
  assumptions about the representation.
  (INUM_STEP): New macro.
  (add1, sub1): Avoid signed overflows, and use INUM_STEP.
libguile/vm-engine.c