Fixed a 64 bit type conversion warning.