The convention used by 'aref' and friends is that for
'args-out-of-range', the error data is a list (SEQ INDEX). Use the same
convention for the vector-related module functions.
* src/emacs-module.c (check_vec_index): Use vector and index as error
data.
(cherry picked from commit
8efcdcab8658ff9537fe483e0a12875cca90a527)
{
CHECK_VECTOR (lvec);
if (! (0 <= i && i < ASIZE (lvec)))
- args_out_of_range_3 (INT_TO_INTEGER (i),
- make_fixnum (0), make_fixnum (ASIZE (lvec) - 1));
+ args_out_of_range (lvec, INT_TO_INTEGER (i));
}
static void