mirror of
https://github.com/nlohmann/json.git
synced 2026-02-25 12:56:26 +00:00
🚨 fix a warning
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user