Skip to content

Commit c20ab3d

Browse files
hzhangxyzCopilot
andauthored
Update src/search.cc
Co-authored-by: Copilot <[email protected]>
1 parent 7b1d081 commit c20ab3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/search.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ namespace ds {
1515
if (lhs_size > rhs_size) {
1616
return false;
1717
}
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());
18+
const std::byte* lhs_data = lhs->head();
19+
const std::byte* rhs_data = rhs->head();
2020
if (std::memcmp(lhs_data, rhs_data, lhs_size) < 0) {
2121
return true;
2222
}

0 commit comments

Comments
 (0)