Remove warnings emitted by clang's -Wsign-conversion
Merge pull request #170 from simartin/clang_warnings_2

Remove warnings emitted by clang's -Wsign-conversion