Fix 'and': return nil if it has no operands

This commit is contained in:
madmaurice 2021-04-08 23:49:04 +02:00
parent 6bff33af20
commit c79b2aabf4

View file

@ -852,6 +852,8 @@ sub macro_and {
return sub {
my $ctx = shift;
return LISP_FALSE unless @operands_parsed;
my $v = LISP_TRUE;
my @operands = @operands_parsed;
while (from_lisp_bool($v) && (my $op = shift @operands))