Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix simple -Wsign-conversion cases. (fmtlib#1571)
* Fix -Wsign-conversion in bigint::subtract_aligned. n is assigned a size_t, and only used for comparisons with j. j is assigned 0, compared to n (size_t), and passed to basic_memory_buffer::operator[] (size_t). * Fix -Wsign-conversion in bigint::assign. num_bigits is initialised to 0, is only ever incremented, and is passed to basic_memory_buffer::operator[] (size_t) and basic_memory_buffer::resize (size_t).
- Loading branch information