parser: address GCC warnings
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
341073b587
commit
fc852c77c7
@ -6090,7 +6090,7 @@ namespace stdex
|
||||
for (;;) {
|
||||
if (this->interval.end < end && text[this->interval.end]) {
|
||||
if ('0' <= text[this->interval.end] && text[this->interval.end] <= '9') {
|
||||
size_t _value = static_cast<size_t>(value) * 10 + text[this->interval.end] - '0';
|
||||
size_t _value = static_cast<size_t>(value) * 10 + static_cast<size_t>(text[this->interval.end] - '0');
|
||||
if (_value > UINT16_MAX) {
|
||||
value = 0;
|
||||
this->interval.invalidate();
|
||||
@ -6472,7 +6472,7 @@ namespace stdex
|
||||
for (;;) {
|
||||
if (this->interval.end < end && text[this->interval.end]) {
|
||||
if ('0' <= text[this->interval.end] && text[this->interval.end] <= '9') {
|
||||
celi_del = celi_del * 10 + text[this->interval.end] - '0';
|
||||
celi_del = celi_del * 10 + static_cast<size_t>(text[this->interval.end] - '0');
|
||||
this->interval.end++;
|
||||
}
|
||||
else if (text[this->interval.end] == '.') {
|
||||
@ -6480,7 +6480,7 @@ namespace stdex
|
||||
for (;;) {
|
||||
if (this->interval.end < end && text[this->interval.end]) {
|
||||
if ('0' <= text[this->interval.end] && text[this->interval.end] <= '9') {
|
||||
decimalni_del = decimalni_del * 10 + text[this->interval.end] - '0';
|
||||
decimalni_del = decimalni_del * 10 + static_cast<size_t>(text[this->interval.end] - '0');
|
||||
decimalni_del_n *= 10;
|
||||
this->interval.end++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user