mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-08 03:43:13 +00:00
Use datatype of underlying data (#3647)
This commit is contained in:
parent
492a99c964
commit
8ef4db4b96
@ -3033,7 +3033,7 @@ class bigint {
|
|||||||
bigits_.resize(to_unsigned(num_bigits + exp_difference));
|
bigits_.resize(to_unsigned(num_bigits + exp_difference));
|
||||||
for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j)
|
for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j)
|
||||||
bigits_[j] = bigits_[i];
|
bigits_[j] = bigits_[i];
|
||||||
std::uninitialized_fill_n(bigits_.data(), exp_difference, 0);
|
std::uninitialized_fill_n(bigits_.data(), exp_difference, 0u);
|
||||||
exp_ -= exp_difference;
|
exp_ -= exp_difference;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user