Fix comparison errors signed/unsigned.
Merge pull request #6 from bchretien/master

Fix comparison errors signed/unsigned.