aboutsummaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-06 16:24:27 -0500
committerJoel Martin <github@martintribe.org>2014-04-06 16:24:27 -0500
commitb079f51028571bc603b8d43761c29ff56273bffc (patch)
tree98e9375fa15667ae6138794a2789215a06148713 /c
parent406d1370fac05bb01df8bee7678453689cd88228 (diff)
downloadmal-b079f51028571bc603b8d43761c29ff56273bffc.tar.gz
mal-b079f51028571bc603b8d43761c29ff56273bffc.zip
C,PHP,Python: stepA fixup. All tests/impls pass!
Diffstat (limited to 'c')
-rw-r--r--c/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/core.c b/c/core.c
index abdf755..2a447e5 100644
--- a/c/core.c
+++ b/c/core.c
@@ -359,7 +359,8 @@ MalVal *with_meta(MalVal *obj, MalVal *meta) {
}
MalVal *meta(MalVal *obj) {
- assert_type(obj, MAL_LIST|MAL_VECTOR|MAL_HASH_MAP|MAL_FUNCTION_C|MAL_FUNCTION_MAL,
+ assert_type(obj, MAL_LIST|MAL_VECTOR|MAL_HASH_MAP|
+ MAL_FUNCTION_C|MAL_FUNCTION_MAL|MAL_ATOM,
"attempt to get metadata from non-collection type");
if (obj->metadata == NULL) {
return &mal_nil;