fixed comparisons between unsigned and signed integers
Merge pull request #3 from jan-schreib/unsigned-int-comparisons

fixed comparisons between unsigned and signed integers