Skip to content
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

Assertion littleEndian triggered by single-byte datatypes #1

Closed
damiendr opened this issue Jul 24, 2012 · 0 comments
Closed

Assertion littleEndian triggered by single-byte datatypes #1

damiendr opened this issue Jul 24, 2012 · 0 comments

Comments

@damiendr
Copy link

Single-byte datatypes such as np.byte have '|' as their byte order character.
This wrongly triggers an assertion failure in cnpy.cpp, line 88

Suggested fix:

bool littleEndian = ((header[loc1] == '<' || header[loc1] == '|') ? true : false);
assert(littleEndian);

rogersce pushed a commit that referenced this issue Feb 10, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants