aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libclc/generic/lib/math/log_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libclc/generic/lib/math/log_base.h b/libclc/generic/lib/math/log_base.h
index 2558f01..4e20329 100644
--- a/libclc/generic/lib/math/log_base.h
+++ b/libclc/generic/lib/math/log_base.h
@@ -209,7 +209,7 @@ log(double x)
const double log_thresh1 = 0x1.e0faap-1;
const double log_thresh2 = 0x1.1082cp+0;
- int is_near = x >= log_thresh1 & x <= log_thresh2;
+ bool is_near = x >= log_thresh1 && x <= log_thresh2;
// Near 1 code
double r = x - 1.0;