Fix Visual Studio 2019 pedantic warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)

This commit is contained in:
Ivan Shynkarenka 2019-10-14 15:00:03 +03:00 committed by Victor Zverovich
parent c4dc6bef24
commit 91f7619cc9

View File

@ -981,7 +981,7 @@ FMT_FUNC void fallback_format(Double v, buffer<char>& buf, int& exp10) {
denominator <<= 1 - fp_value.e; denominator <<= 1 - fp_value.e;
lower.assign(1); lower.assign(1);
if (shift != 0) { if (shift != 0) {
upper_store.assign(1 << shift); upper_store.assign(1ull << shift);
upper = &upper_store; upper = &upper_store;
} }
} }