-
-
Notifications
You must be signed in to change notification settings - Fork 706
WIP: [Do not merge] Change the default char
type to unsigned
#5455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
WIP: [Do not merge] Change the default char
type to unsigned
#5455
Conversation
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 |
Just as an experiment!
Mapped `H5::PredType::NATIVE_CHAR` to either `IOComponentEnum::SCHAR` or `IOComponentEnum::UCHAR`, depending on the signedness of `char`.
`VTKPolyDataMeshIO` originally casted the `buffer` to plain `char *` for component type `CHAR`. However, `CHAR` indicates that the component type is _signed_ char, whereas the default `char` might be unsigned. Follow-up to pull request InsightSoftwareConsortium#5470 commit 70fbb2b "BUG: MINCImageIO should use `signed char` for `CHAR` and `MI_TYPE_BYTE`"
0c97bdf
to
18e206e
Compare
Just as an experiment!
Triggered by @blowekamp at #5450 (comment)