From 803bc2e5ce1517b8bfef4ec3938408b4959931f0 Mon Sep 17 00:00:00 2001 From: liuyics15 <1179805842@qq.com> Date: Wed, 20 Aug 2025 19:19:22 +0800 Subject: [PATCH] fix codecheck Signed-off-by: liuyics15 <1179805842@qq.com> --- native_engine/impl/ark/cj_support.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native_engine/impl/ark/cj_support.cpp b/native_engine/impl/ark/cj_support.cpp index 07baad23d..d696c511c 100644 --- a/native_engine/impl/ark/cj_support.cpp +++ b/native_engine/impl/ark/cj_support.cpp @@ -87,7 +87,7 @@ static bool HasCJMetadata(int fd) if (shstrndx != SHN_UNDEF && shstrndx < shnum) { Elf64_Shdr shstrtabHdr; - const Elf64_Off shdrOffset = ehdr.e_shoff + shstrndx * ehdr.e_shentsize; + const Elf64_Off shdrOffset = ehdr.e_shoff + static_cast(shstrndx) * ehdr.e_shentsize; if (pread(fd, &shstrtabHdr, sizeof(shstrtabHdr), shdrOffset) != sizeof(shstrtabHdr)) { return false; } -- Gitee