From 93159dfc0bb62d5b52d0412b24550be1d2159c30 Mon Sep 17 00:00:00 2001 From: Vladimir Petko Date: Wed, 31 Jan 2024 08:58:29 +1300 Subject: [PATCH] add explicit cast to byte due to lossy-conversions warning. --- minidns-core/src/main/java/org/minidns/record/NSEC.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minidns-core/src/main/java/org/minidns/record/NSEC.java b/minidns-core/src/main/java/org/minidns/record/NSEC.java index c42b5191..e27cd8dd 100644 --- a/minidns-core/src/main/java/org/minidns/record/NSEC.java +++ b/minidns-core/src/main/java/org/minidns/record/NSEC.java @@ -110,7 +110,7 @@ static byte[] createTypeBitMap(List 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) {