Skip to content

Commit

Permalink
fix build with clang19
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Oct 4, 2024
1 parent 36eebd3 commit 3b5c318
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libraries/libfc/include/fc/io/datastream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ class datastream<Streambuf, typename std::enable_if_t<std::is_base_of_v<std::str

size_t read(char* data, size_t n) { return buf.sgetn(data, n); }
size_t write(const char* data, size_t n) { return buf.sputn(data, n); }
size_t tellp() { return this->pubseekoff(0, std::ios::cur); }
bool skip(size_t p) { this->pubseekoff(p, std::ios::cur); return true; }
size_t tellp() { return buf.pubseekoff(0, std::ios::cur); }
bool skip(size_t p) { buf.pubseekoff(p, std::ios::cur); return true; }
bool get(char& c) {
c = buf.sbumpc();
return true;
Expand Down
6 changes: 3 additions & 3 deletions tests/ship_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ BOOST_DATA_TEST_CASE(non_prune_to_prune, bdata::xrange(2) * bdata::xrange(2), en

//upgrade to pruned...
t.conf = eosio::state_history::prune_config{ .prune_blocks = 4 };
t.template check_n_bounce([]() {});
t.check_n_bounce([]() {});

t.check_n_bounce([&]() {
t.check_range_present(6, 9);
Expand Down Expand Up @@ -410,7 +410,7 @@ BOOST_DATA_TEST_CASE(prune_to_non_prune, bdata::xrange(2) * bdata::xrange(2), en

//no more pruned
t.conf = std::monostate{};
t.template check_n_bounce([]() {});
t.check_n_bounce([]() {});

t.check_n_bounce([&]() {
t.check_range_present(6, 9);
Expand Down Expand Up @@ -450,7 +450,7 @@ BOOST_DATA_TEST_CASE(prune_to_partitioned, bdata::xrange(2) * bdata::xrange(2),
.stride = 5
};

t.template check_n_bounce([]() {});
t.check_n_bounce([]() {});

t.check_n_bounce([&]() {
t.check_range_present(6, 9);
Expand Down

0 comments on commit 3b5c318

Please sign in to comment.