We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b1d081 commit c20ab3dCopy full SHA for c20ab3d
src/search.cc
@@ -15,8 +15,8 @@ namespace ds {
15
if (lhs_size > rhs_size) {
16
return false;
17
}
18
- const std::byte* lhs_data = reinterpret_cast<const std::byte*>(lhs.get());
19
- const std::byte* rhs_data = reinterpret_cast<const std::byte*>(rhs.get());
+ const std::byte* lhs_data = lhs->head();
+ const std::byte* rhs_data = rhs->head();
20
if (std::memcmp(lhs_data, rhs_data, lhs_size) < 0) {
21
return true;
22
0 commit comments