fixed 32/64bit differences