* src/charset.c (Fmap_charset_chars): Signal an error if FROM_CODE
or TO_CODE is non-nil and not a fixnum. (Bug#74555)
Copyright-paperwork-exempt: yes
(cherry picked from commit
2125e188ad806134dfc81408822208d75d7f3b5a)
from = CHARSET_MIN_CODE (cs);
else
{
+ CHECK_FIXNAT(from_code);
from = XFIXNUM (from_code);
if (from < CHARSET_MIN_CODE (cs))
from = CHARSET_MIN_CODE (cs);
to = CHARSET_MAX_CODE (cs);
else
{
+ CHECK_FIXNAT(to_code);
to = XFIXNUM (to_code);
if (to > CHARSET_MAX_CODE (cs))
to = CHARSET_MAX_CODE (cs);