Skip to content

Commit

Permalink
mark fmtlib#1194 as fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldreik committed Jun 8, 2019
1 parent ee91514 commit 7d5b0ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuzzing/chrono_duration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void doit(const uint8_t* Data, std::size_t Size, const int scaling) {
if (Size <= Nfixed + 1) {
return;
}
static_assert(std::is_trivially_constructible<Item>::value,"Item must be blittable");
static_assert(std::is_trivially_copyable<Item>::value,"Item must be blittable");
Item item{};
std::memcpy(&item, Data, N);

Expand All @@ -55,7 +55,7 @@ void doit(const uint8_t* Data, std::size_t Size, const int scaling) {
// the end will most likely be detected anyway

// see https://github.com/fmtlib/fmt/issues/1194
#define GITHUB_1194_IS_SOLVED 0
#define GITHUB_1194_IS_SOLVED 1
#if GITHUB_1194_IS_SOLVED
const auto formatstring=fmt::string_view((const char*)Data, Size);
#else
Expand Down

0 comments on commit 7d5b0ec

Please sign in to comment.