Fixed a pile of 32/64 bit integer warnings