From 4efea36f77020eecf3c7826f891417f94aedf6f4 Mon Sep 17 00:00:00 2001 From: Paul Dreik Date: Sun, 9 Jun 2019 18:46:07 +0200 Subject: [PATCH] fix clang build error --- test/fuzzing/chrono_duration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fuzzing/chrono_duration.cpp b/test/fuzzing/chrono_duration.cpp index 63cd39b9f9c6..e1df69334165 100644 --- a/test/fuzzing/chrono_duration.cpp +++ b/test/fuzzing/chrono_duration.cpp @@ -27,7 +27,7 @@ void doit(const uint8_t* Data, std::size_t Size, const int scaling) { //cooperate better. the same bit pattern, interpreted as another type, //is likely interesting. const auto Nfixed=std::max(sizeof(long double),sizeof(std::intmax_t)); - const auto N = sizeof(Item); + constexpr auto N = sizeof(Item); static_assert(N<=Nfixed, "fixed size is too small"); if (Size <= Nfixed + 1) { return;