From: Paul Eggert Date: Sun, 9 Oct 2011 17:47:58 +0000 (-0700) Subject: * charset.c (encode_char): Remove unnecessary difference from trunk. X-Git-Tag: emacs-24.2.90~471^2~6^2~157 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=58c8a77dd99a19052bf813198db4257865d32ac8;p=emacs.git * charset.c (encode_char): Remove unnecessary difference from trunk. --- 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;