From 1a444721869bca8f94f1a5370b9d177444e35ea8 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 6 Sep 2019 07:23:09 -0700 Subject: seq_info: bug: nil for objects with only length method. * lib.c (seq_info): Add missing else, which makes the function return nil for objects that have a length method, but not a car method. --- lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib.c') diff --git a/lib.c b/lib.c index cba770b2..99284d9f 100644 --- a/lib.c +++ b/lib.c @@ -292,7 +292,7 @@ seq_info_t seq_info(val obj) } else { if (get_special_slot(obj, length_m)) ret.kind = SEQ_VECLIKE; - if (get_special_slot(obj, car_m)) + else if (get_special_slot(obj, car_m)) ret.kind = SEQ_LISTLIKE; else ret.kind = SEQ_NOTSEQ; -- cgit v1.2.3