fixed int16 overflow

See Message-ID: <trinity-b144cc71-74f5-4937-8095-36ae4a6addac-1400707944784@3capp-gmx-bs29>
on ethersex-devel@list.zerties.org