Skip to content
Commits on Source (2)
libedlib (1.2.3-5) unstable; urgency=medium
* Declare characters signed explicitly
Closes: #911967
-- Andreas Tille <tille@debian.org> Wed, 19 Dec 2018 12:50:07 +0100
libedlib (1.2.3-4) unstable; urgency=medium
* Make sure the executable is found in test
......
soversion.patch
do_not_build_hello_example.patch
cython3.patch
signed_char.patch
Description: Declare characters signed explicitly
Bug-Debian: https://bugs.debian.org/911967
Origin: https://stackoverflow.com/questions/31634962/narrowing-conversion-from-int-to-char-inside-for-legal-values-when-cro
Author: Andreas Tille <tille@debian.org>
Last-Update: Wed, 19 Dec 2018 12:09:52 +0100
--- a/test/runTests.cpp
+++ b/test/runTests.cpp
@@ -412,12 +412,12 @@ bool test10() {
bool test11() {
int queryLength = 8;
int targetLength = 8;
- char query[8] = {-127, 127, -55, 0, 42, 0, 127, -55};
- char target[8] = {-127, 127, 0, 42, 0, -55, 127, 42};
+ signed char query[8] = {-127, 127, -55, 0, 42, 0, 127, -55};
+ signed char target[8] = {-127, 127, 0, 42, 0, -55, 127, 42};
- bool r = executeTest(query, queryLength, target, targetLength, EDLIB_MODE_HW);
- r = r && executeTest(query, queryLength, target, targetLength, EDLIB_MODE_NW);
- r = r && executeTest(query, queryLength, target, targetLength, EDLIB_MODE_SHW);
+ bool r = executeTest((char *)query, queryLength, (char *)target, targetLength, EDLIB_MODE_HW);
+ r = r && executeTest((char *)query, queryLength, (char *)target, targetLength, EDLIB_MODE_NW);
+ r = r && executeTest((char *)query, queryLength, (char *)target, targetLength, EDLIB_MODE_SHW);
return r;
}