mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-01 20:06:00 +00:00
(Faref, Faset): Allow indexing a char-table
directly by numbers up to CHAR_TABLE_ORDINARY_SLOTS.
This commit is contained in:
parent
e781c49e61
commit
ab5c3f933d
@ -1574,7 +1574,7 @@ or a byte-code object. IDX starts at 0.")
|
||||
|
||||
if (idxval < 0)
|
||||
args_out_of_range (array, idx);
|
||||
if (idxval < CHAR_TABLE_SINGLE_BYTE_SLOTS)
|
||||
if (idxval < CHAR_TABLE_ORDINARY_SLOTS)
|
||||
{
|
||||
/* For ASCII and 8-bit European characters, the element is
|
||||
stored in the top table. */
|
||||
@ -1702,7 +1702,7 @@ IDX starts at 0.")
|
||||
|
||||
if (idxval < 0)
|
||||
args_out_of_range (array, idx);
|
||||
if (idxval < CHAR_TABLE_SINGLE_BYTE_SLOTS)
|
||||
if (idxval < CHAR_TABLE_ORDINARY_SLOTS)
|
||||
XCHAR_TABLE (array)->contents[idxval] = newelt;
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user