aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/charset.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/charset.c b/src/charset.c
index 299655b2cf8..6aa6fe46b54 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1832,8 +1832,9 @@ encode_char (struct charset *charset, int c)
1832 } 1832 }
1833 else /* method == CHARSET_METHOD_OFFSET */ 1833 else /* method == CHARSET_METHOD_OFFSET */
1834 { 1834 {
1835 code = c - CHARSET_CODE_OFFSET (charset); 1835 unsigned code_index = c - CHARSET_CODE_OFFSET (charset);
1836 code = INDEX_TO_CODE_POINT (charset, code); 1836
1837 code = INDEX_TO_CODE_POINT (charset, code_index);
1837 } 1838 }
1838 1839
1839 return code; 1840 return code;