diff --git a/src/PackWithQuantRowOffset.cc b/src/PackWithQuantRowOffset.cc index 15cd737df1..a3d7e0f3eb 100644 --- a/src/PackWithQuantRowOffset.cc +++ b/src/PackWithQuantRowOffset.cc @@ -181,7 +181,7 @@ void PackAWithQuantRowOffset::pack(const block_type_t& block) { float clipped = std::min( std::max(transformed, std::numeric_limits::min()), std::numeric_limits::max()); - T res = round(clipped); + T res = nearbyint(clipped); row_sum += res; out[i * BaseType::blockColSize() + j] = res; }