summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-09-04 03:31:10 +0000
committerRichard M. Stallman <rms@gnu.org>1997-09-04 03:31:10 +0000
commit218194da8f6b3fa6849a7f5741b1005a2cf87073 (patch)
treebac36be0914100786391f9e257630438f216d687 /src
parent6093b0eb2c00b48710d05d5f1797e03f2ed71c3c (diff)
downloademacs-218194da8f6b3fa6849a7f5741b1005a2cf87073.tar.gz
(detect_coding_mask): Re-work previous change.
(detect_eol): Fix use of == instead of -.
Diffstat (limited to 'src')
-rw-r--r--src/coding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index fd092886fbc..e91b763897e 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -2690,7 +2690,7 @@ detect_coding_mask (src, src_bytes)
/* C is an ISO2022 specific control code of C0. */
mask = detect_coding_iso2022 (src, src_end);
src++;
- if (mask == CODING_CATEGORY_MASK_ANY)
+ if (mask == 0)
/* No valid ISO2022 code follows C. Try again. */
goto label_loop_detect_coding;
mask |= CODING_CATEGORY_MASK_RAW_TEXT;
@@ -2851,7 +2851,7 @@ detect_eol (coding, src, src_bytes)
}
/* Else, let's decode only text code anyway. */
#endif /* 0 */
- eol_type == CODING_EOL_LF;
+ eol_type = CODING_EOL_LF;
}
coding_system = coding->symbol;