diff options
author | Ted Yin <[email protected]> | 2013-08-07 09:54:49 +0800 |
---|---|---|
committer | Ted Yin <[email protected]> | 2013-08-07 09:54:49 +0800 |
commit | 7eef3d538bb652d26cf99d35f307cd22581ea393 (patch) | |
tree | 3a355dec3d39a45a2fe9323b8713a529ec214d11 /builtin.cpp | |
parent | 1c0a3e34ab5c2a4208ae567c12381f84a44532f5 (diff) |
a little fix
Diffstat (limited to 'builtin.cpp')
-rw-r--r-- | builtin.cpp | 2 |
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; |