diff options
author | Kenneth Heafield <github@kheafield.com> | 2020-08-11 22:35:31 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2020-08-11 22:35:31 +0300 |
commit | 0a6960e8be76436e768e263db56f372f6e86e9e8 (patch) | |
tree | 0a2c66cf5d3a51f7951996890a4912aafb619a0c | |
parent | 5b511ea0ad84de1dadb047424ea4726bc250857b (diff) |
Another float/double conversion for MSVC
-rw-r--r-- | test/add127_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/add127_test.cc b/test/add127_test.cc index d6e92ee..28c241f 100644 --- a/test/add127_test.cc +++ b/test/add127_test.cc @@ -246,8 +246,8 @@ template <class Routine> void TestMultiplyShiftInt(Index A_rows, Index width, In // }); AlignedVector<float> float_C(test_C.size()); - references::Multiply(A.begin(), B.begin(), float_C.begin(), A_rows, width, B_cols, [&](float sum, const callbacks::OutputBufferInfo& info) { - return sum + bias[info.col_idx]; + references::Multiply(A.begin(), B.begin(), float_C.begin(), A_rows, width, B_cols, [&](double sum, const callbacks::OutputBufferInfo& info) { + return static_cast<float>(sum) + bias[info.col_idx]; }); /* * Multiply8 shift multiplication |