fix clang warning: comparison of unsigned expression < 0 is always false
Merge pull request #47 from dlad/fix-warning

fix clang warning: comparison of unsigned expression < 0 is always false