diff --git a/src/cunumeric/unary/unary_red.cu b/src/cunumeric/unary/unary_red.cu index 17697e73b..47ae3ecc4 100644 --- a/src/cunumeric/unary/unary_red.cu +++ b/src/cunumeric/unary/unary_red.cu @@ -282,7 +282,7 @@ static __device__ __forceinline__ Point local_reduce(LHS& result, if (!domain.contains(point)) return point; bool mask = true; - if constexpr (HAS_WHERE) mask = (where[point] == true); + if constexpr (HAS_WHERE) mask = where[point]; while (point[collapsed_dim] <= domain.hi[collapsed_dim]) { if (mask) { LHS value = OP::convert(point, collapsed_dim, identity, in[point]);