From 58c8a77dd99a19052bf813198db4257865d32ac8 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 9 Oct 2011 10:47:58 -0700 Subject: [PATCH] * charset.c (encode_char): Remove unnecessary difference from trunk. --- src/charset.c | 5 +++-- 1 file 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) } else /* method == CHARSET_METHOD_OFFSET */ { - code = c - CHARSET_CODE_OFFSET (charset); - code = INDEX_TO_CODE_POINT (charset, code); + unsigned code_index = c - CHARSET_CODE_OFFSET (charset); + + code = INDEX_TO_CODE_POINT (charset, code_index); } return code; -- 2.39.2