Skip to content

Commit

Permalink
Bug fix; should have no effect on the runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
jk-jeon committed May 27, 2021
1 parent 80d6af2 commit 71e6536
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions subproject/test/source/test_all_shorter_interval_cases.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ static bool test_all_shorter_interval_cases_impl()
char buffer2[64];

bool success = true;
for (int e = ieee754_format_info::min_exponent + 1;
for (int e = ieee754_format_info::min_exponent;
e <= ieee754_format_info::max_exponent; ++e)
{
// Compose a floating-point number
carrier_uint br = carrier_uint(e) << ieee754_format_info::significand_bits;
carrier_uint br = carrier_uint(e - ieee754_format_info::exponent_bias)
<< ieee754_format_info::significand_bits;
auto x = jkj::dragonbox::float_bits<Float>{ br }.to_float();

jkj::dragonbox::to_chars(x, buffer1);
Expand Down

0 comments on commit 71e6536

Please sign in to comment.