Fixed GCC_WARN_64_TO_32_BIT_CONVERSION warning
Fixed GCC_WARN_64_TO_32_BIT_CONVERSION warning
Merge pull request #120 from nicked/master

Fixed GCC_WARN_64_TO_32_BIT_CONVERSION warnings