Tweak size handling in Endian
authorYedidya Feldblum <yfeldblum@fb.com>
Fri, 3 Mar 2017 05:32:09 +0000 (21:32 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 3 Mar 2017 05:34:58 +0000 (21:34 -0800)
commit97377ac82a909b7d81537f5968381ea6af367a94
tree7985f4f567da0c7bded2bdc7246f0fce70294f61
parentc9cbfdb7254cef993316a53e8ad11e8cf1c6f33f
Tweak size handling in Endian

Summary:
[Folly] Tweak size handling in `Endian`.

Either multiply by 8 in one place, or divide by 8 in another place. Go with the latter, because `sizeof` in C++ emits byte sizes, not bit sizes.

Reviewed By: simpkins

Differential Revision: D4645020

fbshipit-source-id: cb78600ba4c20bebc66aed506d4b5d6c378fc998
folly/Bits.h