aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Yin <ted.sybil@gmail.com>2013-08-07 09:54:49 +0800
committerTed Yin <ted.sybil@gmail.com>2013-08-07 09:54:49 +0800
commit7eef3d538bb652d26cf99d35f307cd22581ea393 (patch)
tree3a355dec3d39a45a2fe9323b8713a529ec214d11
parent1c0a3e34ab5c2a4208ae567c12381f84a44532f5 (diff)
a little fix
-rw-r--r--builtin.cpp2
1 files changed, 2 insertions, 0 deletions
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;