Mantis - ALGLIB
Viewing Issue Advanced Details
1026 General minor always 2024-01-29 18:04 2024-04-11 18:54
barracuda156  
 
normal  
new 4.01.0  
open  
none    
none  
C++
0001026: alglib makes a wrong assumption for size of bool: is may not be 1 byte
The code assumes 1-byte bool, which is wrong for some platforms.

[ 26%] Building CXX object CMakeFiles/alglib.dir/src/ap.cpp.o
/usr/bin/g++-4.2 -Dalglib_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_alglib/alglib/work/alglib-cpp/src -pipe -Os -DNDEBUG -I/opt/local/include -arch ppc -mmacosx-version-min=10.6 -fPIC -MD -MT CMakeFiles/alglib.dir/src/ap.cpp.o -MF CMakeFiles/alglib.dir/src/ap.cpp.o.d -o CMakeFiles/alglib.dir/src/ap.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_alglib/alglib/work/alglib-cpp/src/ap.cpp
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_alglib/alglib/work/alglib-cpp/src/ap.cpp:294: error: size of array ‘_ae_bool_must_be_8_bits_wide’ is negative
Darwin ppc has 4-byte bool.
Issue History
2024-01-29 18:04 barracuda156 New Issue
2024-01-29 18:04 barracuda156 Programming language => C++
2024-04-11 18:54 SergeyB Target Version => 4.02.0

There are no notes attached to this issue.