From 45bea938b18ab6c1117a5516925e7068198b5c88 Mon Sep 17 00:00:00 2001 From: yanzhiqi1 Date: Mon, 28 Jul 2025 16:53:54 +0800 Subject: [PATCH] change int32 to uint32 Issue: #ICPB9Z Signed-off-by: yanzhiqi1 Change-Id: Ifd03cd2c683c18804427d9b3000d68818d99760b --- tooling/static/inspector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tooling/static/inspector.cpp b/tooling/static/inspector.cpp index cc55c7c0..1fc2044f 100644 --- a/tooling/static/inspector.cpp +++ b/tooling/static/inspector.cpp @@ -715,10 +715,10 @@ void Inspector::ReplyNativeCalling(PtThread thread) void Inspector::ProfilerSetSamplingInterval(int32_t interval) { os::memory::ReadLockHolder lock(vmDeathLock_); - if (UNLIKELY(CheckVmDead())) { + if (UNLIKELY(CheckVmDead() || interval < 0)) { return; } - samplingInterval_ = interval; + samplingInterval_ = static_cast(interval); } Expected Inspector::ProfilerStart() -- Gitee