[flang] Fix narrowing warning on macos