WIP: [Do not merge] Change the default char type to unsigned#5455
WIP: [Do not merge] Change the default char type to unsigned#5455N-Dekker wants to merge 1 commit intoInsightSoftwareConsortium:mainfrom
char type to unsigned#5455Conversation
This comment was marked as outdated.
This comment was marked as outdated.
|
itkHDF5ImageIOTest fails because of a bug (missing unsigned ITK/Modules/IO/HDF5/src/itkHDF5ImageIO.cxx Lines 783 to 787 in 8de372e NATIVE_CHAR different from NATIVE_UCHAR, even when the native (default) char is unsigned (equivalent to unsigned char).
However, I must say, I don't understand exactly what's going on there 🤷 |
6852856 to
724f51a
Compare
2bb4eac to
4b63bf3
Compare
4b63bf3 to
4604362
Compare
b8ab121 to
c163521
Compare
|
Should this be closed or rebased, given that #5473 was merged? |
c163521 to
0c97bdf
Compare
Thanks for asking, @dzenanz. It's still useful for me to keep this PR open for a little while, although it is never meant to be merged. I believe there are still a few small |
0c97bdf to
18e206e
Compare
18e206e to
1cafc2a
Compare
|
Should second and third commit be put into a separate PR, meant to be merged? |
The HDF5ImageIO commit ("ENH: Support H5::PredType::NATIVE_SCHAR...") might be OK as well, but as I still see a failure of itkHDF5ImageIOTest, it may not be good enough yet 🤷 |
1cafc2a to
75351bd
Compare
75351bd to
f48eb4e
Compare
Just as an experiment!
f48eb4e to
a3e73e9
Compare
|
@N-Dekker I think the content of this PR is superceeded by changes needed to make linxu-arm build work I am closing this PR (reopen if you think this has independant value) |
|
@hjmjohnson This PR still has test failures, indicating that we still assume that char is a signed integer type, erroneously. So I think it's still useful to have this PR. (Even though it isn't meant to be merged.) |
|
@N-Dekker The test failures in this PR are fixed in the recent MINC updates, and in preparation for Linux-arm CI testing.
I used your CMakeList.txt code use compiler flags that force char to be unsigned in debugging the Linux-arm failures. If this PR is rebased on top of I think it will start passing, and only the "DO NOT SUBMIT" patch will remain. |
Just as an experiment!
Triggered by @blowekamp at #5450 (comment)