-
Notifications
You must be signed in to change notification settings - Fork 79
Fix big-endian binary stl reading #26
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
Conversation
0eda515
to
5431ce4
Compare
Also use uint32_t instead of int for header_num_facets as per the binary STL spec.
5431ce4
to
ca21b35
Compare
Thanks for you contribution. However, this doesn't compile on Mac, and it produces some errors with |
@hroncok Could you fetch again? I think I've already fixed them. |
I'm not fetching, I'm watching the Travis CI integration here. |
Oh oops, looks like a different error from the one I fixed. I'll have a look, thanks. |
Looks like Apple has no <endian.h>
19a84aa
to
d2c9f2a
Compare
Fixes this warning: src/portable_endian.h:1:1: error: C++ style comments are not allowed in ISO C90 [-Werror]
31e203b
to
8c8d0df
Compare
@hroncok It's green now. |
Great job! Do you need this to be included in the 0.98.x series, or merging to master and released "when ready" is fine? |
On Sun, Oct 01, 2017 at 04:54:02AM -0700, Miro Hrončok wrote:
Great job! Do you need this to be included in the 0.98.x series, or merging to
master and released "when ready" is fine?
Thanks. I think merging to master and released when ready is fine, but having
this in the 0.98.x would be nice to have as well.
…--
Kind regards,
Loong Jin
|
Partially revert 2085a48. This is in preparation for applying the upstream fix from admesh at admesh/admesh#26
This has slipped from my radar. I'll merge today. |
Let's keep this in master for a while before it's merged to 0.98.x. |
This PR fixes a deserialization issue (all floats end up wrong) that occurs when reading binary STLs on a big-endian machine, e.g. powerpc.