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 e328985 commit 7d1b867Copy full SHA for 7d1b867
src/SarcLibrary/Readers/SfatReader.cs
@@ -24,7 +24,7 @@ public ref SfatNode this[ReadOnlySpan<byte> key] {
24
[MethodImpl(MethodImplOptions.AggressiveInlining)]
25
get {
26
int index = GetIndex(GetHash(key));
27
- return ref index > 0 && Nodes.Length > index
+ return ref index > -1 && Nodes.Length > index
28
? ref Nodes[index]
29
: ref Unsafe.NullRef<SfatNode>();
30
}
0 commit comments