|
Message-ID: <CA+6sJ-3rKu1sciGkedZUukiw-VJRgbDy1YC6cqKP-xuVMpC46A@mail.gmail.com>
Date: Wed, 28 Jan 2015 16:33:53 +0200
From: Jukka Jylänki <jujjyl@...il.com>
To: musl@...ts.openwall.com
Subject: Operator precedence issue in fma.c.
Hi,
building musl fma.c with Clang/LLVM 3.4, I get the following message:
fma.c:276:22: warning: ^ has lower precedence than !=; != will be evaluated
first [-Wparentheses]
if (bits_lost != 1 ^ (int)(uhi.i & 1)) {
~~~~~~~~~~~~~~~^
fma.c:276:22: note: place parentheses around the '!=' expression to silence
this warning
if (bits_lost != 1 ^ (int)(uhi.i & 1)) {
^
( )
fma.c:276:22: note: place parentheses around the ^ expression to evaluate
it first
if (bits_lost != 1 ^ (int)(uhi.i & 1)) {
^
( )
How does that look to you guys? Is that a real error?
Best Regards,
Jukka
Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.