Skip to content

Commit

Permalink
🚨 fixing last warning in #755
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Oct 4, 2017
1 parent 4e81c1d commit 5cb6d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6656,7 +6656,7 @@ class serializer
return;
}

const bool is_negative = std::is_same<NumberType, number_integer_t>::value and (x < 0);
const bool is_negative = (x <= 0) and (x != 0); // see issue #755
std::size_t i = 0;

while (x != 0)
Expand Down

0 comments on commit 5cb6d71

Please sign in to comment.