1
0
mirror of https://github.com/nlohmann/json.git synced 2025-08-09 05:22:48 +03:00

🚨 fixed some compiler warnings

This commit is contained in:
Niels Lohmann
2018-08-16 18:20:30 +02:00
parent d5b21b051c
commit 07494e06d7
7 changed files with 43 additions and 43 deletions

View File

@@ -1560,7 +1560,7 @@ class binary_reader
}
else
{
if (JSON_UNLIKELY(not sax->start_array(-1)))
if (JSON_UNLIKELY(not sax->start_array(std::size_t(-1))))
{
return false;
}
@@ -1630,7 +1630,7 @@ class binary_reader
}
else
{
if (JSON_UNLIKELY(not sax->start_object(-1)))
if (JSON_UNLIKELY(not sax->start_object(std::size_t(-1))))
{
return false;
}