Fix signed vs unsigned comparisons
Merge pull request #10 from lcw/osx

Fix signed vs unsigned comparisons