Fix overshift check

Shifting by bitwidth-1 is valid
Merge pull request #186 from paulmar/fixshift

Fix overshift check