Specialize Util.writeShortest() for Uint{16,32}
[bgpcep.git] / bgp / extensions / flowspec / src / main / java / org / opendaylight / protocol / bgp / flowspec / FSIpv6FlowLabelHandler.java
index ea7aeb8fa428755fdf905be34cb879cc148bb0c0..e9f592407981e3ff2b2825aba6903a263e4ad958 100644 (file)
@@ -33,7 +33,7 @@ public final class FSIpv6FlowLabelHandler implements FlowspecTypeParser, Flowspe
         for (final Iterator<FlowLabel> it = list.iterator(); it.hasNext(); ) {
             final FlowLabel label = it.next();
             final ByteBuf protoBuf = Unpooled.buffer();
-            Util.writeShortest(label.getValue().intValue(), protoBuf);
+            Util.writeShortest(label.getValue(), protoBuf);
             NumericOneByteOperandParser.INSTANCE.serialize(label.getOp(), protoBuf.readableBytes(),
                     !it.hasNext(), nlriByteBuf);
             nlriByteBuf.writeBytes(protoBuf);