Skip to content

Commit

Permalink
fix pessimizing-move
Browse files Browse the repository at this point in the history
  • Loading branch information
imguoliwei committed Jun 8, 2022
1 parent 8a10049 commit 212825c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ua2f-mix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static constexpr array<char, result_inner_len> meta_cat_ua_and_padding(const cha
array<char, result_inner_len> result {};
for(size_t i = 0; i < ua_length; ++i) result[i] = ua[i];
for(size_t i = ua_length; i < total_len; ++i) result[i] = ch;
return move(result);
return result;
}

template<size_t len, size_t inner_len = len + 1>
Expand All @@ -115,7 +115,7 @@ static constexpr array<char, inner_len> meta_strset(const char ch){

array<char, inner_len> result {};
for(size_t i = 0; i < len; ++i) result[i] = ch;
return move(result);
return result;
}

static const char* strncasestr(const char * const s1, const size_t n1, const char * const s2, const size_t n2) {
Expand Down

0 comments on commit 212825c

Please sign in to comment.