mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
* modules/mod-test/mod-test.c (Fmod_test_sum): Verify there are 2 args.
This commit is contained in:
parent
146f361a13
commit
298b2b3f35
1 changed files with 2 additions and 0 deletions
|
|
@ -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]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue