This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/81272] New: libdecnumber/decNumber.c:6032: wrong condition ?
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 01 Jul 2017 13:48:56 +0000
- Subject: [Bug c/81272] New: libdecnumber/decNumber.c:6032: wrong condition ?
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81272
Bug ID: 81272
Summary: libdecnumber/decNumber.c:6032: wrong condition ?
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
trunk/libdecnumber/decNumber.c:6032]: (style) Boolean result is used in bitwise
operation. Clarify expression with parentheses.
Source code is
if (decNumberIsNegative(lhs) & !decNumberIsNegative(rhs)) {
Maybe better code
if (decNumberIsNegative(lhs) && !decNumberIsNegative(rhs)) {
trunk/libdecnumber/decNumber.c:6036]: (style) Boolean result is used in bitwise
operation. Clarify expression with parentheses.
Duplicate.