sign-compare warnings fixes
Merge pull request #78 from amorozov/issue/76

sign-compare warnings fixes