forked from fmtlib/fmt
Fix Conversion Warning (#2782)
With -Wconversion and 32 Bit I get a warning here with unsigned long long converted to unsigned long.
This commit is contained in:
@@ -1983,7 +1983,7 @@ inline auto write_significand(Char* out, UInt significand, int significand_size,
|
|||||||
int floating_size = significand_size - integral_size;
|
int floating_size = significand_size - integral_size;
|
||||||
for (int i = floating_size / 2; i > 0; --i) {
|
for (int i = floating_size / 2; i > 0; --i) {
|
||||||
out -= 2;
|
out -= 2;
|
||||||
copy2(out, digits2(significand % 100));
|
copy2(out, digits2(static_cast<std::size_t>(significand % 100)));
|
||||||
significand /= 100;
|
significand /= 100;
|
||||||
}
|
}
|
||||||
if (floating_size % 2 != 0) {
|
if (floating_size % 2 != 0) {
|
||||||
|
Reference in New Issue
Block a user