Commit 298b2b3f authored by Philipp Stephani's avatar Philipp Stephani Committed by Eli Zaretskii

* modules/mod-test/mod-test.c (Fmod_test_sum): Verify there are 2 args.

parent 146f361a
......@@ -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]);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment