From 9556c07a167dba87394b4acd0b1dbdd3a6f60504 Mon Sep 17 00:00:00 2001 From: camby Date: Mon, 15 Jul 2024 10:19:42 +0800 Subject: [PATCH] [mac](compile) fix compile error on mac (#37726) --- be/src/runtime/group_commit_mgr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/be/src/runtime/group_commit_mgr.cpp b/be/src/runtime/group_commit_mgr.cpp index 3dd64f154c..fd9b96b0c1 100644 --- a/be/src/runtime/group_commit_mgr.cpp +++ b/be/src/runtime/group_commit_mgr.cpp @@ -142,7 +142,8 @@ Status LoadBlockQueue::get_block(RuntimeState* runtime_state, vectorized::Block* << ", runtime_state=" << runtime_state; } } - _get_cond.wait_for(l, std::chrono::milliseconds(std::min(left_milliseconds, 10000L))); + _get_cond.wait_for(l, std::chrono::milliseconds( + std::min(left_milliseconds, static_cast(10000)))); } if (runtime_state->is_cancelled()) { auto st = Status::Cancelled(runtime_state->cancel_reason());