Skip to content

Commit a450419

Browse files
committed
Correction of BitSets.equals().
1 parent 2c1cc0e commit a450419

File tree

1 file changed

+3
-3
lines changed
  • regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/util

1 file changed

+3
-3
lines changed

regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/util/BitSets.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -260,12 +260,12 @@ public static boolean equals(long[] bs1, long[] bs2) {
260260
}
261261
}
262262
for (int i = bs1.length; i < bs2.length; i++) {
263-
if (bs1[i] != 0) {
263+
if (bs2[i] != 0) {
264264
return false;
265265
}
266266
}
267267
for (int i = bs2.length; i < bs1.length; i++) {
268-
if (bs2[i] != 0) {
268+
if (bs1[i] != 0) {
269269
return false;
270270
}
271271
}

0 commit comments

Comments
 (0)