unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Problem in ENCODE_CHAR macro
@ 2016-02-26 20:45 Aurélien Aptel
  2016-02-26 21:07 ` Andreas Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: Aurélien Aptel @ 2016-02-26 20:45 UTC (permalink / raw)
  To: Emacs development discussions

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?



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-26 21:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-26 20:45 Problem in ENCODE_CHAR macro Aurélien Aptel
2016-02-26 21:07 ` Andreas Schwab
2016-02-26 21:17   ` Aurélien Aptel

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).