From fb2198fd6b293ea72ee1e467c12fcc32b94a45ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 16 Mar 2019 09:28:00 +0100 Subject: [PATCH] Travis: Try to fix test --- test/testbufferoverrun.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/testbufferoverrun.cpp b/test/testbufferoverrun.cpp index dd18daeaa..8ff485d2b 100644 --- a/test/testbufferoverrun.cpp +++ b/test/testbufferoverrun.cpp @@ -928,10 +928,8 @@ private: void array_index_24() { // ticket #1492 and #1539 - // CHAR_MAX can be equal to SCHAR_MAX or UCHAR_MAX depending on the environment. - // This test should work for both environments. std::ostringstream charMaxPlusOne; - charMaxPlusOne << (CHAR_MAX+1); + charMaxPlusOne << (settings0.defaultSign == 'u' ? 256 : 128); check(("void f(char n) {\n" " int a[n];\n" // n <= CHAR_MAX " a[-1] = 0;\n" // negative index