You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added some remarks in README.md and added a test in unittest.c. @s-fritsch Can you verify if it possible to add a compiler switch on ARM/PowerPC to change the default behavior of compilers to using signed char instead of unsigned char?
With gcc, adding -fsigned-char fixes the issue. For our purpose, adding add_compile_options("-fsigned-char") to CMakeLists.txt works. If you are interested, the CMakeLists.txt I am using at the moment is here: http://sources.debian.net/src/mapcode/2.5.1-2/CMakeLists.txt/ It has some more changes, like adding math and pthread libraries.
But I don't know cmake enough to make it check if the used compiler supports -fsigned-char.
@s-fritsch We fixed the signed/unsigned char issue, so the compiler setting is irrelevant now.
Thanks for sharing the CMakeLists.txt improvements. I've incorporated them. Check out (non-release, work-in-progress) branch dev-2.5.2.
I have packaged the mapcode utility for Debian linux and there are unit test failures on architectures where char is unsigned (like arm and powerpc):
You can use -funsigned-char with gcc to simulate the effect on x86.
You probably should add something like this in testEnvironment() in the unit test, to get this information in the test output:
The text was updated successfully, but these errors were encountered: