1
0
Fork 0
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:
Brian Fiete 2020-02-20 11:57:25 -08:00
parent a781f29c31
commit c2c2c24ac8
9 changed files with 99 additions and 26 deletions

View file

@ -260,7 +260,7 @@ namespace System.Collections.Generic
protected void Free(T* val)
{
delete val;
delete (void*)val;
}
/*protected T[] Alloc(int size)
{

View file

@ -407,7 +407,7 @@ namespace System
if (result == .Ok)
return .Ok(Span<T>(vals, inOutSize));
delete vals;
delete (void*)vals;
trySize = inOutSize;
}
}