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:
parent
bca0440b16
commit
16be83ceda
12 changed files with 174 additions and 82 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue