kripken/emscripten — pull request #557 by mnaamani (2012-09-04 11:18:24+00:00)
Title: fixed htonl

corrected htonl() implementation incorrect. Test tests/runner.py passes because it doesn't test for case when sign bit is set. Corrected implementation to use >>> bit shift operator instead of >> bit shift operator.

"python tests/runner.py test_inet" passes.

reference: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/Bitwise_Operators