fixed implicit conversions warnings
Merge pull request #39 from OlegAnghelov/warning

Fixed warnings for 64-bit

Removed implicit conversion from 'long' to 'int'.