Skip to content

Add IOComponent enum SCHAR for signed char (equivalent to CHAR)#5473

Merged
dzenanz merged 2 commits intoInsightSoftwareConsortium:mainfrom
N-Dekker:IOComponent-SCHAR
Jul 25, 2025
Merged

Add IOComponent enum SCHAR for signed char (equivalent to CHAR)#5473
dzenanz merged 2 commits intoInsightSoftwareConsortium:mainfrom
N-Dekker:IOComponent-SCHAR

Conversation

@N-Dekker
Copy link
Copy Markdown
Contributor

Replaced CHAR with SCHAR in IOComponentEnum::CHAR cases of switch statements.

The name SCHAR appears clearer than CHAR, because it is intended to specify a signed char type. The abbreviation SCHAR is already used to denote signed char in C and C++ (SCHAR_MAX) as well as in HDF5 (H5T_NATIVE_SCHAR).

N-Dekker added 2 commits July 17, 2025 16:57
The name `SCHAR` appears clearer than `CHAR`, because it is intended to specify
a _signed_ char type.

The abbreviation `SCHAR` is already used to denote `signed char` in C and C++
(`SCHAR_MAX`) as well as in HDF5 (`H5T_NATIVE_SCHAR`).
Aims to clarify that those cases deal with a `signed` char type.
@github-actions github-actions bot added type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct area:Core Issues affecting the Core module area:IO Issues affecting the IO module area:Segmentation Issues affecting the Segmentation module labels Jul 17, 2025
@N-Dekker
Copy link
Copy Markdown
Contributor Author

The failure of ITK.Pixi / Pixi-Cxx (windows-2022) (pull_request) seems unrelated. It says:

277 - itkBinaryMorphologicalOpeningImageFilterTest (Failed) ITKBinaryMathematicalMorphology

Does anyone have a clue?

@blowekamp
Copy link
Copy Markdown
Member

It does not look like this CI job submits to cdash for does it display the output of the test when it fails. There is not much information to go on.

@N-Dekker
Copy link
Copy Markdown
Contributor Author

It does not look like this CI job submits to cdash for does it display the output of the test when it fails.

Thanks so far, @blowekamp I just ran the test locally, on Windows 11/VS2022, and it passes successfully, on my PR branch (IOComponent-SCHAR):

1>          Start  277: itkBinaryMorphologicalOpeningImageFilterTest
1> 286/3077 Test  #277: itkBinaryMorphologicalOpeningImageFilterTest [...]   Passed    0.20 sec

@N-Dekker N-Dekker marked this pull request as ready for review July 18, 2025 12:41
@N-Dekker
Copy link
Copy Markdown
Contributor Author

itkBinaryMorphologicalOpeningImageFilterTest fails on the main branch as well! "ITK.Pixi / Pixi-Cxx (windows-2022) (push)", main branch commit f71cfd8

Copy link
Copy Markdown
Member

@dzenanz dzenanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good on a glance.

@dzenanz dzenanz merged commit d0b0706 into InsightSoftwareConsortium:main Jul 25, 2025
19 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Core Issues affecting the Core module area:IO Issues affecting the IO module area:Segmentation Issues affecting the Segmentation module type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants