Skip to content

Commit

Permalink
Fixing bitset
Browse files Browse the repository at this point in the history
  • Loading branch information
ConroyG committed Nov 6, 2023
1 parent bb97ce1 commit 25af095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Arch/Core/Utils/CompileTimeStatics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public static int GetHashCode(Span<ComponentType> obj)
}

// Allocate the stack and set bits to replicate a bitset
var length = BitSet.RequiredLength(highestId);
var length = BitSet.RequiredLength(highestId + 1);
Span<uint> stack = stackalloc uint[length];
var spanBitSet = new SpanBitSet(stack);

Expand Down

0 comments on commit 25af095

Please sign in to comment.