Skip to content

Commit

Permalink
[flang-rt] Fixed freestanding memmove. (#128604)
Browse files Browse the repository at this point in the history
  • Loading branch information
vzakhari authored Feb 25, 2025
1 parent 305d273 commit 724b91b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flang/include/flang/Runtime/freestanding-tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static inline RT_API_ATTRS void *memmove(
const char *from{reinterpret_cast<const char *>(src)};

if (to == from) {
return;
return dest;
}
if (to + count <= from || from + count <= to) {
std::memcpy(dest, src, count);
Expand Down

0 comments on commit 724b91b

Please sign in to comment.