Skip to content

Commit e60b83a

Browse files
committed
[libclc] Clarify condition expression (NFC)
Closes #91188
1 parent 03eba20 commit e60b83a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libclc/generic/lib/math/log_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ log(double x)
209209
const double log_thresh1 = 0x1.e0faap-1;
210210
const double log_thresh2 = 0x1.1082cp+0;
211211

212-
int is_near = x >= log_thresh1 & x <= log_thresh2;
212+
bool is_near = x >= log_thresh1 && x <= log_thresh2;
213213

214214
// Near 1 code
215215
double r = x - 1.0;

0 commit comments

Comments
 (0)