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 96a3678 commit ef72557Copy full SHA for ef72557
flang/runtime/edit-input.cpp
@@ -247,6 +247,7 @@ bool EditIntegerInput(
247
// The value is stored in the lower order bits on big endian platform.
248
// When memcpy, shift the value to the higher order bit.
249
auto shft{static_cast<int>(sizeof(value.low())) - kind};
250
+ // For kind==8 (i.e. shft==0), the value is stored in low_ in big endian.
251
if (!isHostLittleEndian && shft >= 0) {
252
auto l{value.low() << (8 * shft)};
253
std::memcpy(n, &l, kind);
0 commit comments