diff options
author | Philipp Stephani <phst@google.com> | 2015-11-24 21:08:22 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2015-11-24 21:08:22 +0200 |
commit | 298b2b3f3520a6ad6dd9ae24fc8bd02a6ec9126e (patch) | |
tree | 670acc571766dabc9c4e6a2a9f0bfa384afd6fda /modules | |
parent | 146f361a1389bca308e3fba52f2d40edd7365aef (diff) | |
download | emacs-298b2b3f3520a6ad6dd9ae24fc8bd02a6ec9126e.tar.gz |
* modules/mod-test/mod-test.c (Fmod_test_sum): Verify there are 2 args.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mod-test/mod-test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/mod-test/mod-test.c b/modules/mod-test/mod-test.c index 44a14dc6fdd..b0c535cdd72 100644 --- a/modules/mod-test/mod-test.c +++ b/modules/mod-test/mod-test.c @@ -42,6 +42,8 @@ sum (intmax_t a, intmax_t b) static emacs_value Fmod_test_sum (emacs_env *env, ptrdiff_t nargs, emacs_value args[], void *data) { + assert (nargs == 2); + intmax_t a = env->extract_integer (env, args[0]); intmax_t b = env->extract_integer (env, args[1]); |