aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPavel Janík2002-01-01 22:12:56 +0000
committerPavel Janík2002-01-01 22:12:56 +0000
commit37aabdcc4731f23428576b04030c3c4bcc9dae84 (patch)
tree7752f842a8d727275f4acb6a26ec894c7ea2d257 /src
parentb532d575304038531c1341e96e9614a84173e323 (diff)
downloademacs-37aabdcc4731f23428576b04030c3c4bcc9dae84.tar.gz
emacs-37aabdcc4731f23428576b04030c3c4bcc9dae84.zip
(UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment when used as truth
value to prevent gcc warnings.
Diffstat (limited to 'src')
-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];
447 447
448#define UNIBYTE_STR_AS_MULTIBYTE_P(str, length, bytes) \ 448#define UNIBYTE_STR_AS_MULTIBYTE_P(str, length, bytes) \
449 (((str)[0] < 0x80 || (str)[0] >= 0xA0) \ 449 (((str)[0] < 0x80 || (str)[0] >= 0xA0) \
450 ? (bytes) = 1 \ 450 ? ((bytes) = 1) \
451 : (((bytes) = BYTES_BY_CHAR_HEAD ((str)[0])), \ 451 : (((bytes) = BYTES_BY_CHAR_HEAD ((str)[0])), \
452 ((bytes) > 1 && (bytes) <= (length) \ 452 ((bytes) > 1 && (bytes) <= (length) \
453 && (str)[0] != LEADING_CODE_8_BIT_CONTROL \ 453 && (str)[0] != LEADING_CODE_8_BIT_CONTROL \