From bbb4fc26e725dc4b433fedb9422095518ebc8691 Mon Sep 17 00:00:00 2001 From: Helmut Eller Date: Fri, 27 Feb 2026 16:23:30 +0100 Subject: * src/charset.h (charset_attributes_getter): Add assertion. --- src/charset.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/charset.h b/src/charset.h index bf14b15beba..7cd2f8b70cd 100644 --- a/src/charset.h +++ b/src/charset.h @@ -291,7 +291,9 @@ INLINE Lisp_Object charset_attributes_getter (struct charset *charset) { eassert (ASIZE (charset_attributes_table) == charset_table_size); - return AREF (charset_attributes_table, charset->id); + Lisp_Object attrs = AREF (charset_attributes_table, charset->id); + eassert (XFIXNUM (CHARSET_ATTR_ID (attrs)) == charset->id); + return attrs; } /* Return the attribute vector of CHARSET. */ -- cgit v1.2.1