diff --git a/flang-rt/lib/runtime/edit-input.cpp b/flang-rt/lib/runtime/edit-input.cpp index 4f01623c6cf19..1bfc16cbc966d 100644 --- a/flang-rt/lib/runtime/edit-input.cpp +++ b/flang-rt/lib/runtime/edit-input.cpp @@ -663,6 +663,7 @@ static RT_API_ATTRS bool TryFastPathRealDecimalInput( *reinterpret_cast *>(n) = converted.binary; io.HandleRelativePosition(p - str); + io.GotChar(p - str); // Set FP exception flags if (converted.flags != decimal::ConversionResultFlags::Exact) { RaiseFPExceptions(converted.flags);