Skip to content

Commit

Permalink
Tweaks to library
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebenezer-group committed Jan 5, 2025
1 parent c551a42 commit 92ab2c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmwBuffer.hh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ struct FileBuffer{
::std::size_t idx=0;
while((line[idx]=getc())!=delim){
if(line[idx]=='\r')raise("getline cr");
if(++idx>=sizeof line)raise("getline too long");
if(++idx>=sizeof line)raise("getline size");
}
line[idx]=0;
return ::std::string_view{line,idx};
Expand Down Expand Up @@ -431,7 +431,7 @@ void receiveBlock (auto& b,C<T>const& c){
}

inline constexpr auto udpPacketMax=1500;
template<class R,class Z=::std::int16_t,int N=udpPacketMax>
template<class R,class Z=::int16_t,int N=udpPacketMax>
class BufferStack:public SendBuffer<Z>,public ReceiveBuffer<R,Z>{
char ar[N];
public:
Expand Down

0 comments on commit 92ab2c8

Please sign in to comment.