Use signed ints in struct charset_table

* src/charset.h (struct charset_table): Make the slots size and used
signed.
(charset_attributes_getter): Fix spacing.
This commit is contained in:
Helmut Eller
2026-03-07 15:23:33 +01:00
parent b0d38e2934
commit b06a1f85c6

View File

@@ -258,7 +258,7 @@ extern Lisp_Object Vcharset_hash_table;
struct charset_table
{
struct charset *start;
unsigned size, used;
int size, used;
Lisp_Object attributes_table;
};
@@ -305,7 +305,7 @@ INLINE Lisp_Object
charset_attributes_getter (struct charset *charset)
{
eassert (ASIZE (charset_table.attributes_table) == charset_table.size);
Lisp_Object attrs = AREF (charset_table.attributes_table, charset->id);
Lisp_Object attrs = AREF (charset_table.attributes_table, charset->id);
eassert (XFIXNUM (CHARSET_ATTR_ID (attrs)) == charset->id);
return attrs;
}