summaryrefslogtreecommitdiffstats
path: root/vpp-common/vpp-translate-utils/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'vpp-common/vpp-translate-utils/src/main/java')
-rw-r--r--vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/Ipv6Translator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/Ipv6Translator.java b/vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/Ipv6Translator.java
index 6d939af07..dbfe81d6c 100644
--- a/vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/Ipv6Translator.java
+++ b/vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/Ipv6Translator.java
@@ -60,7 +60,7 @@ public interface Ipv6Translator extends ByteDataTranslator {
default byte extractPrefix(Ipv6Prefix data) {
checkNotNull(data, "Cannot extract from null");
- return Byte.valueOf(data.getValue().substring(data.getValue().indexOf('/') + 1));
+ return Integer.valueOf(data.getValue().substring(data.getValue().indexOf('/') + 1)).byteValue();
}
/**