Skip to content

Commit

Permalink
docs, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fglock committed Oct 18, 2024
1 parent aa3ce8f commit ca31470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/perlonjava/runtime/Vec.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ public static RuntimeScalar set(RuntimeList args, RuntimeScalar value) throws Pe
int bitIndex = (bitOffset + i) % 8;
if (byteIndex < data.length) {
if ((val & (1 << i)) != 0) {
data[byteIndex] |= (1 << bitIndex);
data[byteIndex] |= (byte) (1 << bitIndex);
} else {
data[byteIndex] &= ~(1 << bitIndex);
data[byteIndex] &= (byte) ~(1 << bitIndex);
}
}
}
Expand Down

0 comments on commit ca31470

Please sign in to comment.