From 51a248156e83a5ed5959ea652438ce98d1fddf41 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Sun, 22 Dec 2019 22:02:17 -0800 Subject: [PATCH] fix bug on BitSet UnSet --- encompass-cs/Collections/BitSet512.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/encompass-cs/Collections/BitSet512.cs b/encompass-cs/Collections/BitSet512.cs index ea0593a..beef1e8 100644 --- a/encompass-cs/Collections/BitSet512.cs +++ b/encompass-cs/Collections/BitSet512.cs @@ -106,19 +106,19 @@ namespace Encompass.Collections { if (index < 128) { - return new BitSet512(A & ~Vector128Builder.Build(index % 256), B, C, D); + return new BitSet512(A & ~Vector128Builder.Build(index % 128), B, C, D); } else if (index < 256) { - return new BitSet512(A, B & ~Vector128Builder.Build(index % 256), C, D); + return new BitSet512(A, B & ~Vector128Builder.Build(index % 128), C, D); } else if (index < 384) { - return new BitSet512(A, B, C & ~Vector128Builder.Build(index % 256), D); + return new BitSet512(A, B, C & ~Vector128Builder.Build(index % 128), D); } else if (index < 512) { - return new BitSet512(A, B, C, D & ~Vector128Builder.Build(index % 256)); + return new BitSet512(A, B, C, D & ~Vector128Builder.Build(index % 128)); } else {