Skip to content

Commit

Permalink
Make MSVC happy
Browse files Browse the repository at this point in the history
  • Loading branch information
cschreib committed Nov 17, 2024
1 parent b9d0ea1 commit b1a2184
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/snitch/snitch_append.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ constexpr std::size_t min_exp_digits = 2u;
// +1 for exponent separator 'e'
// +1 for exponent sign
const std::size_t stored_digits = num_digits<10>(static_cast<large_uint_t>(x.digits));
return stored_digits + (x.sign ? 1u : 0u) + num_exp_digits(x.exponent + stored_digits - 1) + 3u;
return stored_digits + (x.sign ? 1u : 0u) +
num_exp_digits(static_cast<fixed_exp_t>(x.exponent + stored_digits - 1)) + 3u;
}

constexpr std::size_t max_float_length = num_digits(signed_fixed_data{
Expand Down

0 comments on commit b1a2184

Please sign in to comment.