Skip to content

Commit

Permalink
🚨 fixed warning #1364
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Nov 21, 2018
1 parent da81e7b commit ef90d62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/nlohmann/detail/input/binary_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion single_include/nlohmann/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef90d62

Please sign in to comment.