Closed
Description
Static analyser cppcheck says:
libclc/generic/lib/math/log_base.h:212:36: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition]
Source code is
int is_near = x >= log_thresh1 & x <= log_thresh2;
Perhaps better code:
bool is_near = x >= log_thresh1 && x <= log_thresh2;