# HG changeset patch # User Kenichi Handa # Date 1022151247 0 # Node ID 18436bf3d6dd766a7aff4c50f62312b51215c0a6 # Parent 1db59c97efef534f322c9874b4280b5ecd638c6f (Fdefine_coding_system_internal): Fix previous change. (decode_coding_charset): Workaround for the bug of GCC 2.96. diff -r 1db59c97efef -r 18436bf3d6dd src/coding.c --- a/src/coding.c Thu May 23 01:02:36 2002 +0000 +++ b/src/coding.c Thu May 23 10:54:07 2002 +0000 @@ -4346,10 +4346,11 @@ { charset = CHARSET_FROM_ID (XFASTINT (val)); dim = CHARSET_DIMENSION (charset); - while (len++ < dim) + while (len < dim) { ONE_MORE_BYTE (c); code = (code << 8) | c; + len++; } CODING_DECODE_CHAR (coding, src, src_base, src_end, charset, code, c); @@ -4363,10 +4364,11 @@ { charset = CHARSET_FROM_ID (XFASTINT (XCAR (val))); dim = CHARSET_DIMENSION (charset); - while (len++ < dim) + while (len < dim) { ONE_MORE_BYTE (c); code = (code << 8) | c; + len++; } CODING_DECODE_CHAR (coding, src, src_base, src_end, charset, code, c); @@ -7420,9 +7422,9 @@ { dim2 = CHARSET_DIMENSION (CHARSET_FROM_ID (XFASTINT (tmp))); if (dim < dim2) - tmp = Fcons (tmp, Fcons (XCAR (tail), Qnil)); + tmp = Fcons (XCAR (tail), Fcons (tmp, Qnil)); else - tmp = Fcons (XCAR (tail), Fcons (tmp, Qnil)); + tmp = Fcons (tmp, Fcons (XCAR (tail), Qnil)); } else {