diff --git a/BeefLibs/corlib/src/Collections/Generic/Queue.bf b/BeefLibs/corlib/src/Collections/Generic/Queue.bf index 98609ae5..5e8b93d0 100644 --- a/BeefLibs/corlib/src/Collections/Generic/Queue.bf +++ b/BeefLibs/corlib/src/Collections/Generic/Queue.bf @@ -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;