ref: e1d94403fed4edc6607a1eebf7fda984d2c79cac
parent: 7e16fa1da1b72dcaef505e62939bb3b27d2899ef
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Mar 27 09:59:48 EDT 2023
use nelem
--- a/flisp.c
+++ b/flisp.c
@@ -779,7 +779,7 @@
value_t s5 = Stack[SP-5];
if (nargs < nreq)
lerrorf(ArgError, "apply: too few arguments");
- if (extr > sizeof(args)/sizeof(args[0]))
+ if (extr > nelem(args))
lerrorf(ArgError, "apply: too many arguments");
for (i=0; i < extr; i++) args[i] = UNBOUND;
for (i=nreq; i < nargs; i++) {