From e703cc99e6c80fcf51d1db62f852fee8eea07999 Mon Sep 17 00:00:00 2001 From: Irina Demeshko Date: Fri, 17 Nov 2023 10:35:53 -0800 Subject: [PATCH] Update src/cunumeric/unary/unary_red.cc Co-authored-by: Manolis Papadakis --- src/cunumeric/unary/unary_red.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cunumeric/unary/unary_red.cc b/src/cunumeric/unary/unary_red.cc index bc1717a47..b37d1a4b2 100644 --- a/src/cunumeric/unary/unary_red.cc +++ b/src/cunumeric/unary/unary_red.cc @@ -38,7 +38,7 @@ struct UnaryRedImplBody { for (size_t idx = 0; idx < volume; ++idx) { auto point = pitches.unflatten(idx, rect.lo); bool mask = true; - if constexpr (HAS_WHERE) mask = (where[point] == true); + if constexpr (HAS_WHERE) mask = where[point]; if (mask) { auto identity = LG_OP::identity; lhs.reduce(point, OP::convert(point, collapsed_dim, identity, rhs[point]));