Commit 2f9442b8 authored by Paul Eggert's avatar Paul Eggert
Browse files

* coding.c (detect_coding_charset): Fix typo: * 2 -> *4 (Bug#8601).

parent 2d38271b
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
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment