format: don't accidentally cast local variable types

This commit is contained in:
Danny Robson 2017-10-10 13:52:46 +11:00
parent a36991fc83
commit f33ec13b50

View File

@ -788,7 +788,7 @@ namespace util::format::detail {
"0123456789abcdef";
char buffer[numerals];
size_t remain = numerals;
auto remain = numerals;
for (auto cursor = buffer; remain--; t /= spec.base)
*cursor++ = NUMERALS[t % spec.base];