From 51d80cd04aef3a18f503f2305fc8716c0fd93b88 Mon Sep 17 00:00:00 2001 From: yanzhiqi1 Date: Mon, 25 Aug 2025 19:12:01 +0800 Subject: [PATCH] change uint64 to in32 Issue: #ICUMJE Signed-off-by: yanzhiqi1 Change-Id: I46bcbce546ce27a16466d95c836a7b6720a657a9 --- ecmascript/dfx/hprof/rawheap_dump.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecmascript/dfx/hprof/rawheap_dump.cpp b/ecmascript/dfx/hprof/rawheap_dump.cpp index c773a16750..e27ccc2319 100644 --- a/ecmascript/dfx/hprof/rawheap_dump.cpp +++ b/ecmascript/dfx/hprof/rawheap_dump.cpp @@ -162,8 +162,8 @@ NodeId RawHeapDump::GenerateNodeId(JSTaggedType addr) } JSTaggedValue value {addr}; - uint64_t hash = value.IsJSObject() ? JSObject::Cast(value)->GetHash(vm_->GetJSThread()) : 0; - return (hash << 32) | (nodeId & 0xFFFFFFFF); // 32: 32-bits means a half of uint64_t + int32_t hash = value.IsJSObject() ? JSObject::Cast(value)->GetHash(vm_->GetJSThread()) : 0; + return (static_cast(hash) << 32) | (nodeId & 0xFFFFFFFF); // 32: 32-bits means a half of uint64_t } void RawHeapDump::WriteChunk(char *data, size_t size) -- Gitee