Skip to content

Commit

Permalink
allow negative values again
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldreik committed May 30, 2019
1 parent a77a5fc commit 56f7cf3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions fuzzing/chrono_duration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ template <typename Item> void doit(const uint8_t* Data, std::size_t Size) {
Data += N;
Size -= N;

if(std::is_floating_point<Item>::value || std::numeric_limits<Item>::is_signed) {
if(item<0) {
//avoid problems with negative numbers until https://github.com/fmtlib/fmt/issues/1178 is solved
return;
// see https://github.com/fmtlib/fmt/issues/1178
const bool github_1178_is_solved=true;
if(!github_1178_is_solved) {
if(std::is_floating_point<Item>::value || std::numeric_limits<Item>::is_signed) {
if(item<0) {
return;
}
}
}

Expand Down

0 comments on commit 56f7cf3

Please sign in to comment.