summaryrefslogtreecommitdiff
path: root/src/charset.h
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2002-01-01 22:12:56 +0000
committerPavel Janík <Pavel@Janik.cz>2002-01-01 22:12:56 +0000
commit37aabdcc4731f23428576b04030c3c4bcc9dae84 (patch)
tree7752f842a8d727275f4acb6a26ec894c7ea2d257 /src/charset.h
parentb532d575304038531c1341e96e9614a84173e323 (diff)
downloademacs-37aabdcc4731f23428576b04030c3c4bcc9dae84.tar.gz
(UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment when used as truth
value to prevent gcc warnings.
Diffstat (limited to 'src/charset.h')
-rw-r--r--src/charset.h2
1 files changed, 1 insertions, 1 deletions
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 \