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

Disallow object-to-void* casting. Lowering fixes. Variant fixes.

This commit is contained in:
Brian Fiete 2020-06-23 07:32:53 -07:00
parent bca0440b16
commit 16be83ceda
12 changed files with 174 additions and 82 deletions

View file

@ -89,7 +89,7 @@ namespace System
int IHashable.GetHashCode()
{
return (int)(void*)this;
return (int)Internal.UnsafeCastToPtr(this);
}
public virtual void ToString(String strBuffer)
@ -97,7 +97,7 @@ namespace System
//strBuffer.Set(stack string(GetType().mName));
RawGetType().GetName(strBuffer);
strBuffer.Append("@");
((int)(void*)this).ToString(strBuffer, "X", null);
((int)Internal.UnsafeCastToPtr(this)).ToString(strBuffer, "X", null);
}
[SkipCall, NoShow]