aboutsummaryrefslogtreecommitdiff
path: root/flang/runtime/edit-input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'flang/runtime/edit-input.cpp')
-rw-r--r--flang/runtime/edit-input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/flang/runtime/edit-input.cpp b/flang/runtime/edit-input.cpp
index c714a85..317f0b6 100644
--- a/flang/runtime/edit-input.cpp
+++ b/flang/runtime/edit-input.cpp
@@ -130,7 +130,7 @@ static RT_API_ATTRS bool EditBOZInput(
shift = shift - 8; // misaligned octal
}
while (digits > 0) {
- char32_t ch{*io.NextInField(remaining, edit)};
+ char32_t ch{io.NextInField(remaining, edit).value_or(' ')};
int digit{0};
if (ch == ' ' || ch == '\t') {
if (edit.modes.editingFlags & blankZero) {