Ensure shift is 64-bit. Warnings complained of overflow.