Skip to content
Permalink
Browse files
Fixing Security warnings (priority: HIGH) from CodeQL.
  • Loading branch information
leerho committed Apr 18, 2022
1 parent 53cbfa9 commit e3c8602e8324a04ac71b486a278ff66b18825d5c
Showing 3 changed files with 3 additions and 3 deletions.
@@ -73,7 +73,7 @@ public void checkWriteReadUnary() {

// Pad the bitstream so that the decompressor's 12-bit peek can't overrun its input.
final long padding = 7;
bufBits += padding;
bufBits += (int)padding;
//MAYBE_FLUSH_BITBUF(compressedWords, nextWordIndex);
if (bufBits >= 32) {
compressedWords[nextWordIndex++] = (int) bitBuf;
@@ -55,7 +55,7 @@ public void bigSketches() {
int weight = 0;
while (it.next()) {
count++;
weight += it.getWeight();
weight += (int)it.getWeight();
}
Assert.assertEquals(count, sketch.getRetainedItems());
Assert.assertEquals(weight, n);
@@ -57,7 +57,7 @@ public void bigSketches() {
int weight = 0;
while (it.next()) {
count++;
weight += it.getWeight();
weight += (int)it.getWeight();
}
Assert.assertEquals(count, sketch.getRetainedItems());
Assert.assertEquals(weight, n);

0 comments on commit e3c8602

Please sign in to comment.