Issue 292 in alembic: Alembic 1.1.0 uses big endian to hash on Windows/x86amd64.

12 views
Skip to first unread message

ale...@googlecode.com

unread,
Sep 20, 2012, 3:36:06 AM9/20/12
to alemb...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect FoundBy-Community

New issue 292 by shinc...@gmail.com: Alembic 1.1.0 uses big endian to hash
on Windows/x86amd64.
http://code.google.com/p/alembic/issues/detail?id=292

What steps will reproduce the problem?
1. Compute the Murmur3 hash

What is the expected output? What do you see instead?
Shouldn't enter big endian code path.
The hash code is different from 1.0.5 for the same data on Windows.

What version of the product are you using? On what operating system?
Alembic 1.1.0 on Windows.

Please provide any additional information below.
In Alembic/Util/Murmur3.cpp, "#ifdef BOOST_BIG_ENDIAN" is replaced
with "#if __BYTE_ORDER == __BIG_ENDIAN || BYTE_ORDER == BIG_ENDIAN
".
On windows, all the macros are undefined. The result of comparison between
undefined macros is true.



ale...@googlecode.com

unread,
Sep 20, 2012, 12:40:21 PM9/20/12
to alemb...@googlegroups.com
Updates:
Status: PleaseVerify
Owner: miller.lucas

Comment #1 on issue 292 by miller.lucas: Alembic 1.1.0 uses big endian to
Try this fix:

http://code.google.com/r/millerlucas-dev/source/detail?r=4d8ee1b571192a8cafc272cfaa8972970115ac45

ale...@googlecode.com

unread,
Sep 24, 2012, 1:50:14 AM9/24/12
to alemb...@googlegroups.com

Comment #2 on issue 292 by shinc...@gmail.com: Alembic 1.1.0 uses big
endian to hash on Windows/x86amd64.
http://code.google.com/p/alembic/issues/detail?id=292

It works. Thanks for the fast fix!

Reply all
Reply to author
Forward
0 new messages