changeset 42473:ab30bd62a6a8

(UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment when used as truth value to prevent gcc warnings.
author Pavel Janík <Pavel@Janik.cz>
date Tue, 01 Jan 2002 22:12:56 +0000
parents 5787452daded
children 270e55bf2adb
files src/charset.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.h	Tue Jan 01 22:12:19 2002 +0000
+++ b/src/charset.h	Tue Jan 01 22:12:56 2002 +0000
@@ -447,7 +447,7 @@
 
 #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	\