🚨 fix a warning

This commit is contained in:
Niels Lohmann 2020-07-09 22:17:59 +02:00
parent 3aa4c0b827
commit 7fbcae2679
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 2 additions and 2 deletions

View File

@ -936,7 +936,7 @@ class lexer : public lexer_base<BasicJsonType>
while (*p >= '0' and * p <= '9')
{
val = (10 * val) + (*p - '0');
val = (10U * val) + static_cast<number_unsigned_t>((*p - '0'));
p++;
}

View File

@ -9048,7 +9048,7 @@ class lexer : public lexer_base<BasicJsonType>
while (*p >= '0' and * p <= '9')
{
val = (10 * val) + (*p - '0');
val = (10U * val) + static_cast<number_unsigned_t>((*p - '0'));
p++;
}