shithub: femtolisp

Download patch

ref: 9f2575ce5e5935955af02607666f71805d504796
parent: 19cecdac20157dc8638033e0d59f49ddcd1d82ff
author: Carlo Dapor <catull@gmail.com>
date: Sun Aug 13 16:03:13 EDT 2017

Argument to abs() is actually long, not int, thus use labs().

--- a/flisp.c
+++ b/flisp.c
@@ -1791,7 +1791,7 @@
             i = GET_INT32(ip); ip+=4;
             n = GET_INT32(ip); ip+=4;
             s = GET_INT32(ip); ip+=4;
-            nargs = process_keys(v, i, n, abs(s)-(i+n), bp, nargs, s<0);
+            nargs = process_keys(v, i, n, labs(s)-(i+n), bp, nargs, s<0);
             NEXT_OP;
 
 #ifndef USE_COMPUTED_GOTO