Skip to content

Commit

Permalink
🚨 removing a compiler warning #755
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Oct 2, 2017
1 parent 8be303d commit b91805e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json.hpp
Expand Up @@ -6660,7 +6660,7 @@ class serializer
return;
}

const bool is_negative = x < 0;
const bool is_negative = std::is_same<NumberType, number_integer_t>::value and (x < 0);
std::size_t i = 0;

// spare 1 byte for '\0'
Expand Down

0 comments on commit b91805e

Please sign in to comment.