r3933: Type changes for 64-bit compatibility (Tony Houghton).