]> git.eshelyaron.com Git - emacs.git/commitdiff
* coding.c (detect_coding_charset): Fix typo: * 2 -> *4 (Bug#8601).
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 May 2011 23:37:08 +0000 (16:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 May 2011 23:37:08 +0000 (16:37 -0700)
src/ChangeLog
src/coding.c

index 230761a6f1e95d4448e45cc468e9f972529d995f..52d7a6cc068174b6aea8318b9048308cb4b006c0 100644 (file)
@@ -1,5 +1,7 @@
 2011-05-01  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * coding.c (detect_coding_charset): Fix typo: * 2 -> *4 (Bug#8601).
+
        * charset.h (struct charset.code_space): Now has 15 elements, not 16.
        * charset.c (Fdefine_charset_internal): Don't initialize
        charset.code_space[15].  The value was garbage, on hosts with
index d17346efdcb26cb2ebb30c85b5cc34e6c40d64ed..71253df64692f2046e3751fe2bb4f986a354e6a4 100644 (file)
@@ -5368,8 +5368,8 @@ detect_coding_charset (struct coding_system *coding,
              if (src == src_end)
                goto too_short;
              ONE_MORE_BYTE (c);
-             if (c < charset->code_space[(dim - 1 - idx) * 2]
-                 || c > charset->code_space[(dim - 1 - idx) * 2 + 1])
+             if (c < charset->code_space[(dim - 1 - idx) * 4]
+                 || c > charset->code_space[(dim - 1 - idx) * 4 + 1])
                break;
            }
          if (idx < dim)