mirror of
https://github.com/fmtlib/fmt.git
synced 2025-09-16 16:25:36 -04:00
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:
parent
1ba69fb5a1
commit
0742606f19
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user