diff options
author | Kenneth Heafield <github@kheafield.com> | 2020-08-11 22:30:14 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2020-08-11 22:30:14 +0300 |
commit | 5b511ea0ad84de1dadb047424ea4726bc250857b (patch) | |
tree | 37a28a8a91e7bf5794c864ff18a549c506633b35 | |
parent | e6b361b62dc66092239f3f3e6d7a9de8573d8b34 (diff) |
One more MSVC warning
-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 451d5cf..d6e92ee 100644 --- a/test/add127_test.cc +++ b/test/add127_test.cc @@ -185,8 +185,8 @@ template <class Routine> void TestMultiplyShiftNonShift(Index A_rows, Index widt Routine::Multiply(A_prep_old.begin(), B_prep.begin(), A_rows, width, B_cols, callbacks::UnquantizeAndAddBiasAndWrite(unquant_mult, bias.begin(), slowint_C.begin())); 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]; }); /* |