Skip to content

Commit 1ba9e77

Browse files
committed
Added check for valid argument list
1 parent c788046 commit 1ba9e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

standard_library.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static Object *overwrite_value(Object *symbol, Object *rvalue, Binding *binding)
181181
}
182182

183183
static int is_argument_list(Object *list) {
184-
return 1;
184+
return is_nil(list) || is_pair(list);
185185
}
186186

187187
static bool compare_numbers(long comparison, Object *arguments, ErrorHandler error) {

0 commit comments

Comments
 (0)