diff --git a/hwy/contrib/algo/find_test.cc b/hwy/contrib/algo/find_test.cc index 8593b60e94..c525f25928 100644 --- a/hwy/contrib/algo/find_test.cc +++ b/hwy/contrib/algo/find_test.cc @@ -173,8 +173,8 @@ struct TestFindIf { // Includes out-of-range value 9 to test the not-found path. for (int val = min_val; val <= 9; ++val) { #if HWY_GENERIC_LAMBDA - const auto greater = [val](const auto d, const auto v) HWY_ATTR { - return Gt(v, Set(d, ConvertScalarTo(val))); + const auto greater = [val](const auto d2, const auto v) HWY_ATTR { + return Gt(v, Set(d2, ConvertScalarTo(val))); }; #else const GreaterThan greater(val);