From c17140fd7aff77c1763333dfdbc2bb0cf162786c Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 3 Oct 2019 08:55:29 -0400 Subject: [PATCH] bgpd: Show to compiler that uint64_t -> uint32_t is ok here We only have a uint32_t value here but clippy is wise and gives us more data than we need. Tell the compiler we can throw some stuff away. This was found by inspecting CI results. Signed-off-by: Donald Sharp --- bgpd/bgp_rpki.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index 352e3b87e8..1267e35097 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -1234,7 +1234,8 @@ DEFPY (show_rpki_prefix, const struct pfx_record *record = &matches[i]; if (record->max_len >= prefix->prefixlen - && ((asn != 0 && asn == record->asn) || asn == 0)) { + && ((asn != 0 && (uint32_t)asn == record->asn) + || asn == 0)) { print_record(&matches[i], vty); } }