applied fix to Satoshi's devious use of C++ implementation of bitshift

Source: https://github.com/bitcoin/bips/blob/master/bip-0042.mediawiki