Fixed warning:  comparison between signed and unsigned integer expressions

Signed-off-by: Serg Brych <sbrych@gmail.com>