Fixed GCC_WARN_64_TO_32_BIT_CONVERSION warning