fix warning about implicit conversion from unsigned long to int
Merge pull request #40 from webdevotion/fix-int-warning

fix warning about implicit conversion from unsigned long to int