parser: address GCC warnings

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2025-06-05 12:09:24 +02:00
parent 341073b587
commit fc852c77c7

View File

@ -6090,7 +6090,7 @@ namespace stdex
for (;;) { for (;;) {
if (this->interval.end < end && text[this->interval.end]) { if (this->interval.end < end && text[this->interval.end]) {
if ('0' <= text[this->interval.end] && text[this->interval.end] <= '9') { 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) { if (_value > UINT16_MAX) {
value = 0; value = 0;
this->interval.invalidate(); this->interval.invalidate();
@ -6472,7 +6472,7 @@ namespace stdex
for (;;) { for (;;) {
if (this->interval.end < end && text[this->interval.end]) { if (this->interval.end < end && text[this->interval.end]) {
if ('0' <= text[this->interval.end] && text[this->interval.end] <= '9') { 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++; this->interval.end++;
} }
else if (text[this->interval.end] == '.') { else if (text[this->interval.end] == '.') {
@ -6480,7 +6480,7 @@ namespace stdex
for (;;) { for (;;) {
if (this->interval.end < end && text[this->interval.end]) { if (this->interval.end < end && text[this->interval.end]) {
if ('0' <= text[this->interval.end] && text[this->interval.end] <= '9') { 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; decimalni_del_n *= 10;
this->interval.end++; this->interval.end++;
} }