Cast UInt32 to Int64 for -X

Because -X must be negative.