size_t changed to int to avoid comparison of different signs
Merge pull request #29 from arpg/fix-sign

size_t changed to int to avoid comparison of different signs