From ace725049ec5b9403675585824fd7eed24ca8583 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 10 May 2002 08:57:31 +0000 Subject: [PATCH] (encode_coding_sjis_big5): Enclose bitwise AND in parens, to ensure correct evaluation order. --- src/ChangeLog | 5 +++++ src/coding.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index b75c98c6fd6..b01580f0af7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-05-10 Eli Zaretskii + + * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in + parens, to ensure correct evaluation order. + 2002-05-07 Eli Zaretskii * fileio.c (read_non_regular): Remove an extraneous call to Fsignal. diff --git a/src/coding.c b/src/coding.c index 2e3411838a8..0682b43f57d 100644 --- a/src/coding.c +++ b/src/coding.c @@ -3043,7 +3043,7 @@ encode_coding_sjis_big5 (coding, source, destination, switch (c) { case '\r': - if (!coding->mode & CODING_MODE_SELECTIVE_DISPLAY) + if (!(coding->mode & CODING_MODE_SELECTIVE_DISPLAY)) { EMIT_ONE_BYTE (c); break; -- 2.39.5