[Bug boehm-gc/72713] New: boehm-gc/pthread_support.c:687: suspicious expression ?
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jul 27 17:52:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72713
Bug ID: 72713
Summary: boehm-gc/pthread_support.c:687: suspicious expression
?
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: boehm-gc
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
boehm-gc/pthread_support.c:687]: (style) Boolean result is used in bitwise
operation. Clarify expression with parentheses.
Source code is
if (marker_sp[i] > lo & marker_sp[i] < hi) return 1;
Maybe better code
if (marker_sp[i] > lo && marker_sp[i] < hi) return 1;
More information about the Gcc-bugs
mailing list