diff options
| author | Helmut Eller | 2026-02-27 16:23:30 +0100 |
|---|---|---|
| committer | Helmut Eller | 2026-03-21 18:42:00 +0100 |
| commit | bbb4fc26e725dc4b433fedb9422095518ebc8691 (patch) | |
| tree | 1d7ec1fe79ee562b2d90446f2a664d70ee91dbe5 /src | |
| parent | 186af8e934e045d41e08f12ec9f3a99d2992a7b5 (diff) | |
| download | emacs-bbb4fc26e725dc4b433fedb9422095518ebc8691.tar.gz emacs-bbb4fc26e725dc4b433fedb9422095518ebc8691.zip | |
* src/charset.h (charset_attributes_getter): Add assertion.
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
| 291 | charset_attributes_getter (struct charset *charset) | 291 | charset_attributes_getter (struct charset *charset) |
| 292 | { | 292 | { |
| 293 | eassert (ASIZE (charset_attributes_table) == charset_table_size); | 293 | eassert (ASIZE (charset_attributes_table) == charset_table_size); |
| 294 | return AREF (charset_attributes_table, charset->id); | 294 | Lisp_Object attrs = AREF (charset_attributes_table, charset->id); |
| 295 | eassert (XFIXNUM (CHARSET_ATTR_ID (attrs)) == charset->id); | ||
| 296 | return attrs; | ||
| 295 | } | 297 | } |
| 296 | 298 | ||
| 297 | /* Return the attribute vector of CHARSET. */ | 299 | /* Return the attribute vector of CHARSET. */ |