From e64978ed8941df2ba90bc033b49678276c20fcf5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 26 May 2018 17:45:01 -0400 Subject: [PATCH] fuzz_with_unicorn: Make float_numbers in floating-point tests constexpr Given this is just a lookup table, this can be made immutable. --- tests/A64/fuzz_with_unicorn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/A64/fuzz_with_unicorn.cpp b/tests/A64/fuzz_with_unicorn.cpp index 295e3f15..afe2e030 100644 --- a/tests/A64/fuzz_with_unicorn.cpp +++ b/tests/A64/fuzz_with_unicorn.cpp @@ -254,7 +254,7 @@ TEST_CASE("A64: Single random instruction", "[a64]") { } TEST_CASE("A64: Floating point instructions", "[a64]") { - std::array float_numbers { + static constexpr std::array float_numbers { 0x00000000, // positive zero 0x00000001, // smallest positive denormal 0x00000076, //