Commit 1e303dec authored by Lukas Weber's avatar Lukas Weber
Browse files

add signed char hdf5 type

parent 0d51d8fd
...@@ -121,8 +121,8 @@ public: ...@@ -121,8 +121,8 @@ public:
template<typename T> template<typename T>
constexpr hid_t iodump::h5_datatype() { constexpr hid_t iodump::h5_datatype() {
if(typeid(T) == typeid(char)) if(typeid(T) == typeid(signed char))
return H5T_NATIVE_CHAR; return H5T_NATIVE_SCHAR;
if(typeid(T) == typeid(int)) if(typeid(T) == typeid(int))
return H5T_NATIVE_INT; return H5T_NATIVE_INT;
if(typeid(T) == typeid(short)) if(typeid(T) == typeid(short))
...@@ -131,6 +131,8 @@ constexpr hid_t iodump::h5_datatype() { ...@@ -131,6 +131,8 @@ constexpr hid_t iodump::h5_datatype() {
return H5T_NATIVE_LONG; return H5T_NATIVE_LONG;
if(typeid(T) == typeid(long long)) if(typeid(T) == typeid(long long))
return H5T_NATIVE_LLONG; return H5T_NATIVE_LLONG;
if(typeid(T) == typeid(unsigned char))
return H5T_NATIVE_UCHAR;
if(typeid(T) == typeid(unsigned int)) if(typeid(T) == typeid(unsigned int))
return H5T_NATIVE_UINT; return H5T_NATIVE_UINT;
if(typeid(T) == typeid(unsigned short)) if(typeid(T) == typeid(unsigned short))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment