forked from OSchip/llvm-project
[libc][NFC] Make explicit casts for gcc
This commit is contained in:
parent
2e8fa86e09
commit
31cccebb5c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue