aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index cde56d9af42..6dbf05ce0aa 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -1669,7 +1669,8 @@ detect_coding_utf_16 (coding, detect_info)
1669 |CATEGORY_MASK_UTF_16_BE 1669 |CATEGORY_MASK_UTF_16_BE
1670 | CATEGORY_MASK_UTF_16_LE); 1670 | CATEGORY_MASK_UTF_16_LE);
1671 1671
1672 while (detect_info->rejected != CATEGORY_MASK_UTF_16) 1672 while ((detect_info->rejected & CATEGORY_MASK_UTF_16)
1673 != CATEGORY_MASK_UTF_16)
1673 { 1674 {
1674 TWO_MORE_BYTES (c1, c2); 1675 TWO_MORE_BYTES (c1, c2);
1675 if (c2 < 0) 1676 if (c2 < 0)