From 37aabdcc4731f23428576b04030c3c4bcc9dae84 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20Jan=C3=ADk?= Date: Tue, 1 Jan 2002 22:12:56 +0000 Subject: [PATCH] (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment when used as truth value to prevent gcc warnings. --- src/charset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charset.h b/src/charset.h index 961bb60afcb..d4e85d91ebf 100644 --- a/src/charset.h +++ b/src/charset.h @@ -447,7 +447,7 @@ extern int width_by_char_head[256]; #define UNIBYTE_STR_AS_MULTIBYTE_P(str, length, bytes) \ (((str)[0] < 0x80 || (str)[0] >= 0xA0) \ - ? (bytes) = 1 \ + ? ((bytes) = 1) \ : (((bytes) = BYTES_BY_CHAR_HEAD ((str)[0])), \ ((bytes) > 1 && (bytes) <= (length) \ && (str)[0] != LEADING_CODE_8_BIT_CONTROL \ -- 2.39.5