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

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