Correct 64 to 32 bit conversions

default compiler warnings