From 8d31090e85e6930b965283062a2c30ec065dd5d4 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 8 May 2019 17:17:36 +0100 Subject: [PATCH] Default compiler to signed char --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 415083fab..4d4a19209 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -269,6 +269,9 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") target_compile_options(devilution PRIVATE -fno-aggressive-loop-optimizations) endif() +target_compile_options(devilution PRIVATE -fsigned-char) +target_compile_options(devilutionx PRIVATE -fsigned-char) + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") # Style issues target_compile_options(devilutionx PRIVATE -Wno-parentheses -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses)