More log tests

This commit is contained in:
SChernykh
2023-09-17 10:38:46 +02:00
parent 513c2dfc3b
commit ed56206c30
3 changed files with 44 additions and 2 deletions
+1 -2
View File
@@ -80,13 +80,12 @@ struct Stream
static_assert(1 < base && base <= 64, "Invalid base");
const bool negative = is_negative(data);
std::make_unsigned_t<T> udata = abs(data);
char buf[32];
size_t k = sizeof(buf);
int w = m_numberWidth;
std::make_unsigned_t<T> udata = static_cast<std::make_unsigned_t<T>>(data);
do {
buf[--k] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/"[udata % base];
udata /= base;