Fix nextPowTwo for 64-bit values under MSVC
authorChristopher Dykes <cdykes@fb.com>
Mon, 1 Aug 2016 22:09:57 +0000 (15:09 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Mon, 1 Aug 2016 22:23:28 +0000 (15:23 -0700)
commit8fdd5f1befb42d13a35934b0a10be84d054f1047
treeb7ff33eecfccc2aefa453664153fdc379c90406f
parent800802c8573781c591c39d4ea580938a9cd2e8a0
Fix nextPowTwo for 64-bit values under MSVC

Summary: A `long` is only 32-bits on MSVC, so this is simply wrong. Shift a `T` left instead.

Reviewed By: yfeldblum

Differential Revision: D3651139

fbshipit-source-id: 3bbfd18ed0c372287c4ec6cbcc543f6f1fcc4139
folly/Bits.h