Fix bug in Bits<T>::get / set
authorTudor Bosman <tudorb@fb.com>
Thu, 13 Dec 2012 20:16:32 +0000 (12:16 -0800)
committerJordan DeLong <jdelong@fb.com>
Sun, 16 Dec 2012 22:49:32 +0000 (14:49 -0800)
commit06eaa4f3ae4e385b8e85ae76db9ffaa8103edad0
treead04a1ce565185709e485b1e291ab361fbf2aef9
parent9284f39b8b851dfbe8d8dd514def166fd454982e
Fix bug in Bits<T>::get / set

Summary:
Everything worked except for getting properly aligned full blocks
because 1ULL << 64 is invalid (the shift amount must be strictly less than
the value size in bits)

Test Plan: test added

Reviewed By: philipp@fb.com

FB internal diff: D657800
folly/experimental/Bits.h
folly/experimental/test/BitsTest.cpp