Skip to content

Commit 40696e8

Browse files
committed
Handle MSVC warning treated as error
1 parent c1b7be9 commit 40696e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/microfmt.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ namespace microfmt {
8484
// log_2(x) == 63 - clz(x)
8585
// 1 + (63 - clz(value)) / (63 - clz(1 << shift))
8686
// 63 - clz(1 << shift) is the same as shift
87-
auto n_digits = 1 + (63 - clz(value)) / shift;
87+
auto n_digits = static_cast<std::size_t>(1 + (63 - clz(value)) / shift);
8888
std::string number;
8989
number.resize(n_digits);
9090
std::size_t i = n_digits - 1;

0 commit comments

Comments
 (0)