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. */