mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 07:14:09 +02:00
Fixed some issues with new/delete generic constraints
This commit is contained in:
parent
a781f29c31
commit
c2c2c24ac8
9 changed files with 99 additions and 26 deletions
|
@ -260,7 +260,7 @@ namespace System.Collections.Generic
|
|||
|
||||
protected void Free(T* val)
|
||||
{
|
||||
delete val;
|
||||
delete (void*)val;
|
||||
}
|
||||
/*protected T[] Alloc(int size)
|
||||
{
|
||||
|
|
|
@ -407,7 +407,7 @@ namespace System
|
|||
if (result == .Ok)
|
||||
return .Ok(Span<T>(vals, inOutSize));
|
||||
|
||||
delete vals;
|
||||
delete (void*)vals;
|
||||
trySize = inOutSize;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue