forked from Mirror/frr
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 <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
6d7b7e4257
commit
c17140fd7a
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue