diff --git a/cmake/ftxui_fuzzer.cmake b/cmake/ftxui_fuzzer.cmake index 5d5d516..8a2fb1d 100644 --- a/cmake/ftxui_fuzzer.cmake +++ b/cmake/ftxui_fuzzer.cmake @@ -4,6 +4,7 @@ endif() set(CMAKE_C_COMPILER clang) set(CMAKE_CXX_COMPILER clang++) +set(CMAKE_CXX_STANDARD 17) function(fuzz name) add_executable(${name} diff --git a/src/ftxui/component/component_fuzzer.cpp b/src/ftxui/component/component_fuzzer.cpp index ec34dec..3198a82 100644 --- a/src/ftxui/component/component_fuzzer.cpp +++ b/src/ftxui/component/component_fuzzer.cpp @@ -96,8 +96,7 @@ MenuOption GeneratorMenuOption(const char* data, size_t size) { MenuOption option; option.underline = GeneratorUnderlineOption(data, size); option.entries = GeneratorMenuEntryOption(data, size); - option.direction = - static_cast(GeneratorInt(data, size) % 4); + option.direction = static_cast(GeneratorInt(data, size) % 4); return option; }