aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHelmut Eller2026-03-07 15:23:33 +0100
committerHelmut Eller2026-03-21 18:42:01 +0100
commitb06a1f85c61c3583d9df9a73e4317b290d1c19a6 (patch)
tree1e2f4490cb62b9d7ee5267c110f3de4a5a10b3fd /src
parentb0d38e29343d7c8248e460d7e8168a2f4f97a040 (diff)
downloademacs-b06a1f85c61c3583d9df9a73e4317b290d1c19a6.tar.gz
emacs-b06a1f85c61c3583d9df9a73e4317b290d1c19a6.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/charset.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charset.h b/src/charset.h
index f7cd08e3a88..e0ffa992506 100644
--- a/src/charset.h
+++ b/src/charset.h
@@ -258,7 +258,7 @@ extern Lisp_Object Vcharset_hash_table;
258struct charset_table 258struct charset_table
259{ 259{
260 struct charset *start; 260 struct charset *start;
261 unsigned size, used; 261 int size, used;
262 Lisp_Object attributes_table; 262 Lisp_Object attributes_table;
263}; 263};
264 264
@@ -305,7 +305,7 @@ INLINE Lisp_Object
305charset_attributes_getter (struct charset *charset) 305charset_attributes_getter (struct charset *charset)
306{ 306{
307 eassert (ASIZE (charset_table.attributes_table) == charset_table.size); 307 eassert (ASIZE (charset_table.attributes_table) == charset_table.size);
308 Lisp_Object attrs = AREF (charset_table.attributes_table, charset->id); 308 Lisp_Object attrs = AREF (charset_table.attributes_table, charset->id);
309 eassert (XFIXNUM (CHARSET_ATTR_ID (attrs)) == charset->id); 309 eassert (XFIXNUM (CHARSET_ATTR_ID (attrs)) == charset->id);
310 return attrs; 310 return attrs;
311} 311}