We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b143b24 commit 59531cfCopy full SHA for 59531cf
flang/runtime/edit-input.cpp
@@ -119,7 +119,7 @@ static RT_API_ATTRS bool EditBOZInput(
119
std::memset(n, 0, bytes);
120
int increment{isHostLittleEndian ? -1 : 1};
121
auto *data{reinterpret_cast<unsigned char *>(n) +
122
- (isHostLittleEndian ? significantBytes - 1 : 0)};
+ (isHostLittleEndian ? significantBytes - 1 : bytes - significantBytes)};
123
int shift{((digits - 1) * LOG2_BASE) & 7};
124
while (digits > 0) {
125
char32_t ch{*io.NextInField(remaining, edit)};
0 commit comments