Skip to content

Commit

Permalink
Fix compiler warning about mismatched signedness (#104)
Browse files Browse the repository at this point in the history
This is an addendum to 4eccdce

It also makes the implementation consistent with the other serialize
implementations in the same file.

Signed-off-by: Magnus Groß <[email protected]>
  • Loading branch information
vimpostor authored Jul 3, 2023
1 parent 917e4ae commit 96ecfa7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/pmtv/pmt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,8 @@ std::streamsize _serialize(std::streambuf& sb, const T& arg) {
char one = 1;
char zero = 0;
for (auto value : arg) {
sb.sputn(value ? &one : &zero, sizeof(char));
length += sb.sputn(value ? &one : &zero, sizeof(char));
}
length += arg.size() * sizeof(char);
return length;
}
template <UniformVector T>
Expand Down

0 comments on commit 96ecfa7

Please sign in to comment.