From 7e9a2883fe5c25a521b1dc37e4c549e1ed508ece Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Tue, 15 Apr 2014 01:24:43 -0500 Subject: All: fix get. All pass stepA tests. --- c/core.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c') diff --git a/c/core.c b/c/core.c index 2a447e5..33bb991 100644 --- a/c/core.c +++ b/c/core.c @@ -182,6 +182,8 @@ MalVal *get(MalVal *obj, MalVal *key) { } else { return &mal_nil; } + case MAL_NIL: + return &mal_nil; default: abort("get called on unsupported type %d", obj->type); } -- cgit v1.2.3