From 4721f42f5a1a224a16f59e1c7b7f1204d60083e2 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 29 Oct 2013 22:16:16 +0900 Subject: [PATCH] bugfix: define can take only 1 argument --- src/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.c b/src/codegen.c index 32b75d77..7e1eb742 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -220,7 +220,7 @@ codegen(codegen_state *state, pic_value obj) int idx; pic_value var, val; - if (pic_length(pic, obj) < 3) { + if (pic_length(pic, obj) < 2) { pic_error(pic, "syntax error"); }