diff options
| author | Pavel Janík | 2002-01-01 22:12:56 +0000 |
|---|---|---|
| committer | Pavel Janík | 2002-01-01 22:12:56 +0000 |
| commit | 37aabdcc4731f23428576b04030c3c4bcc9dae84 (patch) | |
| tree | 7752f842a8d727275f4acb6a26ec894c7ea2d257 /src | |
| parent | b532d575304038531c1341e96e9614a84173e323 (diff) | |
| download | emacs-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.h | 2 |
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 \ |