Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fixedpoint/fixedpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ class FixedPoint {
const double min_bound = static_cast<double>(ScalarRawMin());
const double max_bound = static_cast<double>(ScalarRawMax());
return FromScalarRaw(static_cast<ScalarRawType>(std::min(
std::max(round(x * static_cast<double>(1ll << kFractionalBits)),
std::max(std::round(x * static_cast<double>(1ll << kFractionalBits)),
min_bound),
max_bound)));
}
Expand Down