Skip to content

Commit a26db57

Browse files
committed
should get rid of the implicit conversion warning due to u16's always converting to i32 when any operation applied
1 parent 0d58017 commit a26db57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/fmt/format.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3175,10 +3175,10 @@ constexpr auto fractional_part_rounding_thresholds(int index) -> uint32_t {
31753175
// Then we split this up into two separate arrays of char16_ts, so they can
31763176
// be properly recombined into uint32_t.
31773177

3178-
return static_cast<uint16_t>(
3178+
return static_cast<uint32_t>(
31793179
u"\x9999\x828f\x8041\x8006\x8000\x8000\x8000\x8000"[index])
31803180
<< 16u |
3181-
static_cast<uint16_t>(
3181+
static_cast<uint32_t>(
31823182
u"\x999a\x5c29\x8938\x8db9\xa7c6\x10c7\x01ae\x002b"[index]);
31833183
}
31843184

0 commit comments

Comments
 (0)