shithub: sl

Download patch

ref: 2b6a9dadcf069f93b926d96260e84706cf934962
parent: 914e5eb1b37e178a012f804227b076c1fc6b3197
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);