ata: fixed type error.