From 7eef3d538bb652d26cf99d35f307cd22581ea393 Mon Sep 17 00:00:00 2001 From: Ted Yin Date: Wed, 7 Aug 2013 09:54:49 +0800 Subject: a little fix --- builtin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builtin.cpp b/builtin.cpp index b1d2a93..e5eb988 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -727,6 +727,7 @@ BUILTIN_PROC_DEF(make_list) { } BUILTIN_PROC_DEF(num_add) { + ARGS_AT_LEAST_ONE; NumObj *res = new IntNumObj(0), *opr; // the most accurate type EvalObj *nptr; Cons *ptr; @@ -782,6 +783,7 @@ BUILTIN_PROC_DEF(num_sub) { } BUILTIN_PROC_DEF(num_multi) { + ARGS_AT_LEAST_ONE; NumObj *res = new IntNumObj(1), *opr; // the most accurate type EvalObj *nptr; Cons *ptr; -- cgit v1.2.3-70-g09d2