shithub: femtolisp

Download patch

ref: a0cabac048eb111422ea67af4d95f9caa2ad9174
parent: e022f4118f7a64dcd6e4a680756741b846d592e4
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Nov 29 21:15:31 EST 2024

OP_FOR: use _applyn to work with every type of functions and fail otherwise

--- a/flisp.c
+++ b/flisp.c
@@ -1648,7 +1648,7 @@
 			for(; s <= hi; s++){
 				FL(stack)[FL(sp)-2] = FL(stack)[FL(sp)-3];
 				FL(stack)[FL(sp)-1] = fixnum(s);
-				v = apply_cl(1);
+				v = _applyn(1);
 				FL(sp) = n;
 			}
 			POPN(4);