We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 341cea9 commit 613e1d3Copy full SHA for 613e1d3
Badeend.ValueCollections/Internals/RawBitArray.cs
@@ -32,7 +32,9 @@ public readonly bool this[int index]
32
{
33
get
34
35
+#if DEBUG
36
Polyfills.DebugAssert((uint)index < (uint)this.length);
37
+#endif
38
39
var indexIntoArray = (int)((uint)index / IntSize);
40
var indexIntoInt = (int)((uint)index % IntSize);
@@ -42,8 +44,10 @@ public readonly bool this[int index]
42
44
43
45
set
46
47
48
Polyfills.DebugAssert(value == true, "At the time of writing we only ever set an index to true");
49
50
51
52
53
0 commit comments