From 83fe62ea928a4e959b813d9b8822c9c62c51e540 Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Tue, 27 Oct 2015 12:58:08 +0800 Subject: [PATCH] *fixed an argument detection issue with nil value. --- core/my_basic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/my_basic.c b/core/my_basic.c index 03728ed..9db923e 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -6830,7 +6830,7 @@ int mb_has_arg(struct mb_interpreter_t* s, void** l) { if(ast) { obj = (_object_t*)(ast->data); if(!_IS_FUNC(obj, _core_close_bracket) && obj->type != _DT_EOS) - result = obj->type != _DT_NIL && obj->type != _DT_SEP && obj->type != _DT_EOS; + result = obj->type != _DT_SEP && obj->type != _DT_EOS; } return result;