Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cnpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ char cnpy::map_type(const std::type_info& t)
if(t == typeid(short) ) return 'i';
if(t == typeid(long) ) return 'i';
if(t == typeid(long long) ) return 'i';
// These may have different typeids so they must also be included.
if(t == typeid(signed int) ) return 'i';
if(t == typeid(signed char) ) return 'i';
if(t == typeid(signed short) ) return 'i';
if(t == typeid(signed long) ) return 'i';
if(t == typeid(signed long long) ) return 'i';

if(t == typeid(unsigned char) ) return 'u';
if(t == typeid(unsigned short) ) return 'u';
Expand Down