commit 02a4ea5a312928fb15041de477056ba2c1f74635
parent 7ddabe2757b03a98936ec802c9dc8be7358aecfd
Author: Dan Levin <[email protected]>
Date: Wed, 28 Jun 2017 16:52:31 +0300
Merge pull request #15 from josephsmeng/master
change lambda function arg type as float for making msvc happy
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/expression_test.cpp b/tests/expression_test.cpp
@@ -18,9 +18,9 @@ TEST(pack)
const univector<float, 21> v1 = 1 + counter();
const univector<float, 21> v2 = v1 * 11;
- CHECK_EXPRESSION(pack(v1, v2), 21, [](size_t i) { return f32x2{ 1 + i, (1 + i) * 11 }; });
+ CHECK_EXPRESSION(pack(v1, v2), 21, [](float i) { return f32x2{ 1 + i, (1 + i) * 11 }; });
- CHECK_EXPRESSION(bind_expression(fn::reverse(), pack(v1, v2)), 21, [](size_t i) {
+ CHECK_EXPRESSION(bind_expression(fn::reverse(), pack(v1, v2)), 21, [](float i) {
return f32x2{ (1 + i) * 11, 1 + i };
});
}