From 49f0277103939fc65be2fd5b3acf0559fd2a1583 Mon Sep 17 00:00:00 2001 From: ArthurSonzogni Date: Fri, 19 May 2023 11:17:32 +0200 Subject: [PATCH] Fix errors due to missing commit in the support branch. --- cmake/ftxui_fuzzer.cmake | 1 + src/ftxui/component/component_fuzzer.cpp | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }