fix size_t/int misuse

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <norluk@luxoft.com>
Change-Id: I69fc1e63bd45ed2a210b67b3fa618254791dea11