Skip to content

Commit 802fb66

Browse files
committed
Fixed formatting for negative 4byte values.
1 parent 12381e0 commit 802fb66

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

ReClass.NET/Nodes/NIntNode.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ public override void GetUserInterfaceInfo(out string name, out Image icon)
2020

2121
public override Size Draw(DrawContext context, int x, int y)
2222
{
23-
var value = ReadValueFromMemory(context.Memory).ToInt64();
23+
var value = ReadValueFromMemory(context.Memory)
24+
#if RECLASSNET64
25+
.ToInt64();
26+
#else
27+
.ToInt32();
28+
#endif
2429
return DrawNumeric(context, x, y, context.IconProvider.Signed, "NInt", value.ToString(), $"0x{value:X}");
2530
}
2631

ReClass.NET/Nodes/NUIntNode.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ public override void GetUserInterfaceInfo(out string name, out Image icon)
2020

2121
public override Size Draw(DrawContext context, int x, int y)
2222
{
23-
var value = ReadValueFromMemory(context.Memory).ToUInt64();
23+
var value = ReadValueFromMemory(context.Memory)
24+
#if RECLASSNET64
25+
.ToUInt64();
26+
#else
27+
.ToUInt32();
28+
#endif
2429
return DrawNumeric(context, x, y, context.IconProvider.Unsigned, "NUInt", value.ToString(), $"0x{value:X}");
2530
}
2631

0 commit comments

Comments
 (0)