Fixed  warnings in 64bit mode by casting size_t to int
Merge pull request #4 from dirkvdb/master

Fixed  warnings in 64bit mode by casting size_t to int