From ed44f499620f3fa0bcdfc25ac269f7e3dc183ab4 Mon Sep 17 00:00:00 2001 From: tsatsulya Date: Tue, 12 Aug 2025 11:25:12 +0300 Subject: [PATCH] restrict enum == int --- interop/src/arkts/DeserializerBase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interop/src/arkts/DeserializerBase.ts b/interop/src/arkts/DeserializerBase.ts index 2f6d36a368..e43586e93d 100644 --- a/interop/src/arkts/DeserializerBase.ts +++ b/interop/src/arkts/DeserializerBase.ts @@ -163,7 +163,7 @@ export class DeserializerBase implements Disposable { this._position = newPos const value = unsafeMemory.readInt8(pos); - if (value == Tags.UNDEFINED) + if (value == Tags.UNDEFINED.valueOf()) return false; return value == 1 -- Gitee