Fix unexpected sign extension
Merge pull request #165 from TsudaKageyu/sign-ext

Fix unexpected sign extension