[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem in ENCODE_CHAR macro
From: |
Aurélien Aptel |
Subject: |
Problem in ENCODE_CHAR macro |
Date: |
Fri, 26 Feb 2016 21:45:18 +0100 |
Hi,
#define ENCODE_CHAR(charset, c) \
(verify_expr \
(sizeof (c) <= sizeof (int), \
(ASCII_CHAR_P (c) && (charset)->ascii_compatible_p \
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
? (unsigned) (c)
?: has lower precedence than &&.
Shouldn't the underlined part be wrapped in extra paren?
- Problem in ENCODE_CHAR macro,
Aurélien Aptel <=