Skip to content

Commit

Permalink
Fix compiling problem with -mavx2
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Dec 4, 2024
1 parent 079085d commit 3b364d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/common/string_oprs.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,9 @@ LIBATFRAME_UTILS_API_HEAD_ONLY void reverse(TCH *begin, TCHE end_any) {
}

--end;
using std::swap;
while (begin < end) {
TCH c = *end;
*end = *begin;
*begin = c;
swap(*begin, *end);
++begin;
--end;
}
Expand Down

0 comments on commit 3b364d3

Please sign in to comment.