am e860d239: am 9c1c2059: am 5b3eb07e: Merge "Prevent bit shifting if num bits is negative"

* commit 'e860d239529a484021d779d391c823ca93323ae1':
  Prevent bit shifting if num bits is negative