Prevent potential PIR calc. overflow
Merge pull request #2 from netcoin-shrodingerscat/master

Prevent potential PIR calc. overflow