fix type error (arch-dependent) in new aio code