Skip to content

Commit

Permalink
Merge pull request #66 from tobybell/fix-u32c-macro
Browse files Browse the repository at this point in the history
Maybe fix bug in `remove_trailing_zeros(u64)`
  • Loading branch information
jk-jeon committed Aug 10, 2024
2 parents d5dc40a + d690411 commit fe0e5fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/dragonbox/dragonbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -3004,7 +3004,7 @@ namespace jkj {
significand = b ? r : significand;

r = detail::bits::rotr<64>(
detail::stdr::uint_least64_t(significand * UINT32_C(14757395258967641293)), 1);
detail::stdr::uint_least64_t(significand * UINT64_C(14757395258967641293)), 1);
b = r < UINT64_C(1844674407370955162);
s = s * 2 + b;
significand = b ? r : significand;
Expand Down

0 comments on commit fe0e5fe

Please sign in to comment.