From e51b726c9947f870be11adaffa13f2e06e227556 Mon Sep 17 00:00:00 2001 From: Xavier Date: Wed, 9 Aug 2023 08:55:23 -0600 Subject: [PATCH] Remove call to Math.min --- src/main/java/com/zaxxer/sparsebits/SparseBitSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/zaxxer/sparsebits/SparseBitSet.java b/src/main/java/com/zaxxer/sparsebits/SparseBitSet.java index 4efbc90..3d86170 100644 --- a/src/main/java/com/zaxxer/sparsebits/SparseBitSet.java +++ b/src/main/java/com/zaxxer/sparsebits/SparseBitSet.java @@ -1058,7 +1058,7 @@ public int previousClearBit(int i) int w1 = w >> SHIFT1; if (w1 > aSize) return i; - w1 = Math.min(w1, aSize); + int w4 = i % LENGTH4; long word;