From f141a4f7664af424c4a980a37bdc8d90a296ecc0 Mon Sep 17 00:00:00 2001 From: irtaza-shahzad Date: Wed, 23 Jul 2025 04:16:04 +0500 Subject: [PATCH] [BUGFIX] fixed multiplication promotion to larger type in span size --- src/observer/storage/index/bplus_tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/observer/storage/index/bplus_tree.cpp b/src/observer/storage/index/bplus_tree.cpp index aca159f54..606135ebc 100644 --- a/src/observer/storage/index/bplus_tree.cpp +++ b/src/observer/storage/index/bplus_tree.cpp @@ -630,7 +630,7 @@ RC InternalIndexNodeHandler::move_last_to_front(InternalIndexNodeHandler &other) RC InternalIndexNodeHandler::insert_items(int index, const char *items, int num) { - RC rc = mtr_.logger().node_insert_items(*this, index, span(items, item_size() * num), num); + RC rc = mtr_.logger().node_insert_items(*this, index, span(items, static_cast(item_size()) * static_cast(num)), num); if (OB_FAIL(rc)) { LOG_WARN("failed to log insert item. rc=%s", strrc(rc)); return rc;