Skip to content

Commit 1ffca61

Browse files
N-Dekkerdzenanz
authored andcommitted
ENH: Add IOComponent enum SCHAR for signed char (equivalent to CHAR)
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`).
1 parent 4c38534 commit 1ffca61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/Core/Common/include/itkCommonEnums.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ class CommonEnums
8080
{
8181
UNKNOWNCOMPONENTTYPE,
8282
UCHAR,
83-
CHAR,
83+
SCHAR,
84+
CHAR = SCHAR,
8485
USHORT,
8586
SHORT,
8687
UINT,

0 commit comments

Comments
 (0)