1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-23 18:18:00 +02:00

Merge pull request #88 from damianday/Queue

Move assert
This commit is contained in:
Brian Fiete 2020-03-20 15:14:37 -07:00 committed by GitHub
commit b3e5829ce1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,8 +51,8 @@ namespace System.Collections.Generic
[AllowAppend]
public this(int capacity)
{
Debug.Assert((uint)capacity <= (uint)SizeFlags);
T* items = append T[capacity]* (?);
Debug.Assert(capacity >= 0);
mItems = items;
mHead = 0;
mTail = 0;