Skip to content

Commit

Permalink
Change to FixedString implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebenezer-group committed Jun 8, 2024
1 parent f6d40f1 commit fa4a78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmwBuffer.hh
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,8 @@ template<int N>class FixedString{
}

void operator= (::std::string_view s){
if(s.size()>=N)raise("FixedString operator=");
len=s.size();
if(len()>=N)raise("FixedString operator=");
::std::memcpy(str,s.data(),len());
}

Expand Down

0 comments on commit fa4a78a

Please sign in to comment.