[erlang-questions] idea: endianess in interoperability tutorials
Fri Dec 14 13:10:08 CET 2007
Interoperability tutorials examples use non-portable code to read message length
with erl_interface. For example:
len = (buf << 8) | buf;
works only on little-endian platforms.
I suggest a minor patch that make them a bit more portable. It might be good
idea to apply it in the documentation, I have found the original code copy-pasted in
several places (luckily running on x86 computers).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 658 bytes
Desc: not available
More information about the erlang-questions