Skip to content

Commit 6b0a35f

Browse files
authored
cast to size_t
1 parent 2abd761 commit 6b0a35f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/observer/storage/index/bplus_tree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ RC LeafIndexNodeHandler::move_half_to(LeafIndexNodeHandler &other)
281281

282282
other.append(__item_at(move_index), move_item_num);
283283

284-
RC rc = mtr_.logger().node_remove_items(*this, move_index, span<const char>(__item_at(move_index), static_cast<long>(move_item_num) * item_size()), move_item_num);
284+
RC rc = mtr_.logger().node_remove_items(*this, move_index, span<const char>(__item_at(move_index), static_cast<size_t>(move_item_num) * item_size()), move_item_num);
285285
if (OB_FAIL(rc)) {
286286
LOG_WARN("failed to log shrink leaf node. rc=%s", strrc(rc));
287287
return rc;

0 commit comments

Comments
 (0)