fix sign-comparison warning/error
Merge pull request #100 from pah/fix/clang-32bit

Fix sign-comparison warning/error on 32-bit platforms