From 26bf72b86355c055c367021098e441ed80a68cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Schnabel?= Date: Wed, 18 Sep 2024 14:11:27 +0000 Subject: [PATCH] Fix GCC complaining about -1 not being a valid char on arm64 (Linux) --- src/gdlib/gmsstrm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gdlib/gmsstrm.cpp b/src/gdlib/gmsstrm.cpp index 6e9b297..106afda 100644 --- a/src/gdlib/gmsstrm.cpp +++ b/src/gdlib/gmsstrm.cpp @@ -82,7 +82,7 @@ constexpr uint8_t signature_header = 0xFF; const std::string signature_gams = "*GAMS*"s; constexpr int verify_offset = 100; -constexpr static char substChar {/*0x1A*/ std::char_traits::eof()}; +constexpr static char substChar { std::numeric_limits::is_signed ? std::char_traits::eof() : 0x1A }; union TDoubleVar {