Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Nov 21, 2023
1 parent 9852956 commit 392f0b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/ylt/struct_pack/endian_wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ void low_bytes_write_wrapper(writer_t& writer, const T& elem) {
writer.write((char*)&tmp, block_size);
}
else {
static_assert(!sizeof(writer),
"illegal block size(should be 1,2,4,8)");
static_assert(!sizeof(writer), "illegal block size(should be 1,2,4,8)");
}
}
}
Expand Down Expand Up @@ -264,7 +263,7 @@ bool low_bytes_read_wrapper(reader_t& reader, T& elem) {
return true;
}
else {
reader.read(data, block_size);
return reader.read(data, block_size);
}
}
}
Expand Down

0 comments on commit 392f0b4

Please sign in to comment.