1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

System.Pointer ToString fix

This commit is contained in:
Brian Fiete 2025-01-21 08:46:03 -08:00
parent 5000fa9843
commit 67f8e45c55

View file

@ -18,7 +18,8 @@ namespace System
public override void ToString(String strBuffer)
{
strBuffer.AppendF("0x{0:A}", (UInt.Simple)(uint)(void*)mVal);
strBuffer.Append("0x");
NumberFormatter.AddrToString((uint)(void*)mVal, strBuffer);
}
}
@ -35,7 +36,8 @@ namespace System
{
strBuffer.Append("(");
typeof(T).ToString(strBuffer);
strBuffer.AppendF("*)0x{0:A}", (UInt.Simple)(uint)(void*)mVal);
strBuffer.Append("*)0x");
NumberFormatter.AddrToString((uint)(void*)mVal, strBuffer);
}
}
}