1
0
mirror of https://github.com/nlohmann/json synced 2024-12-24 01:30:08 +00:00

🚨 fixed warning #1364

This commit is contained in:
Niels Lohmann 2018-11-21 21:17:38 +01:00
parent da81e7be22
commit ef90d62ddf
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ class binary_reader
case 0x08: // boolean
{
return sax->boolean(static_cast<bool>(get()));
return sax->boolean(get() != 0);
}
case 0x0A: // null

View File

@ -6582,7 +6582,7 @@ class binary_reader
case 0x08: // boolean
{
return sax->boolean(static_cast<bool>(get()));
return sax->boolean(get() != 0);
}
case 0x0A: // null