Skip to content

Commit

Permalink
Fix Conversion Warning (#2782)
Browse files Browse the repository at this point in the history
With -Wconversion and 32 Bit I get a warning here with unsigned long
long converted to unsigned long.
  • Loading branch information
HazardyKnusperkeks authored Feb 22, 2022
1 parent 1ba69fb commit 0742606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -1983,7 +1983,7 @@ inline auto write_significand(Char* out, UInt significand, int significand_size,
int floating_size = significand_size - integral_size;
for (int i = floating_size / 2; i > 0; --i) {
out -= 2;
copy2(out, digits2(significand % 100));
copy2(out, digits2(static_cast<std::size_t>(significand % 100)));
significand /= 100;
}
if (floating_size % 2 != 0) {
Expand Down

0 comments on commit 0742606

Please sign in to comment.