From: Pavel Janík Date: Tue, 1 Jan 2002 22:12:56 +0000 (+0000) Subject: (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment when used as truth X-Git-Tag: ttn-vms-21-2-B4~17364 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=37aabdcc4731f23428576b04030c3c4bcc9dae84;p=emacs.git (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment when used as truth value to prevent gcc warnings. --- 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 \