Skip to content

Commit

Permalink
Merge pull request #133 from vpa1977/explicit_cast
Browse files Browse the repository at this point in the history
Add explicit cast to byte due to lossy-conversions warning.
  • Loading branch information
Flowdalic authored Apr 1, 2024
2 parents 819256e + 93159df commit 922a88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minidns-core/src/main/java/org/minidns/record/NSEC.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static byte[] createTypeBitMap(List<TYPE> types) {
}
int a = (type >> 3) % 32;
int b = type % 8;
bitmap[a] |= 128 >> b;
bitmap[a] |= (byte)(128 >> b);
}
if (windowBlock != -1) writeOutBlock(bitmap, dos);
} catch (IOException e) {
Expand Down

0 comments on commit 922a88e

Please sign in to comment.