[libc][NFC] Make explicit casts for gcc

This commit is contained in:
Alex Brachet 2022-07-13 16:53:39 +00:00
parent 2e8fa86e09
commit 31cccebb5c
1 changed files with 2 additions and 1 deletions

View File

@ -299,7 +299,8 @@ public:
continue;
}
if (this->num_digits < MAX_NUM_DIGITS) {
this->digits[this->num_digits] = *numString - '0';
this->digits[this->num_digits] =
static_cast<uint8_t>(*numString - '0');
++this->num_digits;
} else if (*numString != '0') {
this->truncated = true;