From a1e9ec0cfadd8b2d3bac57180cfece85143e0eb8 Mon Sep 17 00:00:00 2001 From: Ulysses Wu Date: Tue, 7 Oct 2025 16:06:41 +0800 Subject: [PATCH] fix uint type enum --- Source/VSProj/Src/Core/StackOperation.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/VSProj/Src/Core/StackOperation.cs b/Source/VSProj/Src/Core/StackOperation.cs index 083067b..2165b90 100644 --- a/Source/VSProj/Src/Core/StackOperation.cs +++ b/Source/VSProj/Src/Core/StackOperation.cs @@ -433,6 +433,11 @@ public static void PushObject(Value* evaluationStackBase, Value* evaluationStack *(long*)(&evaluationStackPointer->Value1) = underlyingType == typeof(long) ? Convert.ToInt64(obj) : (long)Convert.ToUInt64(obj) ; } + else if (underlyingType == typeof(uint)) + { + evaluationStackPointer->Type = ValueType.Integer; + evaluationStackPointer->Value1 = unchecked((int) Convert.ToUInt32(obj)); + } else { evaluationStackPointer->Type = ValueType.Integer;