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:
Björn Schäpers 2022-02-22 17:16:36 +01:00 committed by GitHub
parent 1ba69fb5a1
commit 0742606f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {