Fix wrong decoding of short int

For issue 88
Merge pull request #147 from m-2k/master

Fix wrong decoding of short int