From 6cea6cda8799cdfe57166532c7d3060505940612 Mon Sep 17 00:00:00 2001 From: Zhelyapov Aleksey Date: Fri, 5 Sep 2025 21:31:08 +0300 Subject: [PATCH] Fix mac build sdk crash Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICWNRZ Signed-off-by: Zhelyapov Aleksey --- ets2panda/compiler/lowering/ets/lambdaLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ets2panda/compiler/lowering/ets/lambdaLowering.cpp b/ets2panda/compiler/lowering/ets/lambdaLowering.cpp index 1d45f1c371..27dbc5794a 100644 --- a/ets2panda/compiler/lowering/ets/lambdaLowering.cpp +++ b/ets2panda/compiler/lowering/ets/lambdaLowering.cpp @@ -1513,7 +1513,7 @@ static ir::AstNode *TransformTupleSpread(public_lib::Context *ctx, ir::CallExpre ArenaVector tupleElements(allocator->Adapter()); for (std::size_t idx = 0U; idx < arg->TsType()->AsETSTupleType()->GetTupleSize(); ++idx) { auto *ident = genSymIdent->Clone(allocator, nullptr); - auto *number = allocator->New(lexer::Number(idx)); + auto *number = allocator->New(lexer::Number(static_cast(idx))); auto *indexed = util::NodeAllocator::ForceSetParent( allocator, ident, number, ir::MemberExpressionKind::ELEMENT_ACCESS, true, false); tupleElements.push_back(indexed); -- Gitee