fix integer overflow in literals decompression, port of the fix in r118
Merge pull request #40 from luben/fix-literal-overrun

fix integer overflow in literals decompression, port of the fix in r118