Skip to content

Commit

Permalink
Fix typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed Aug 28, 2024
1 parent d3e3be2 commit 592fd95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/clasp/core/float_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ template <typename Float> struct float_convert {
}

// Check one more time to ensure rounding hasn't increased the width.
shift = std::max(std::bit_width(significand) - significand_width, 0);
shift = std::max(static_cast<int>(std::bit_width(significand) - significand_width), 0);
significand = significand >> shift;
exponent += shift;

Expand Down

0 comments on commit 592fd95

Please sign in to comment.