summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/functions.m b/functions.m
index a884c40..3c0c2f9 100644
--- a/functions.m
+++ b/functions.m
@@ -196,9 +196,10 @@ void MLKSplitDeclarationsDocAndForms (id *decls, id *doc, id *forms, id body, BO
*doc = nil;
declarations = nil;
- while (([[body car] isKindOfClass:[MLKCons class]]
- && [[body car] car] == DECLARE)
- || (docp && [[body car] isKindOfClass:[NSString class]]))
+ while (MLKInstanceP ([body car])
+ && (([[body car] isKindOfClass:[MLKCons class]]
+ && [[body car] car] == DECLARE)
+ || (docp && [[body car] isKindOfClass:[NSString class]])))
{
id thing = [body car];