Skip to content

Commit

Permalink
Use vmin_t in vcl_acl_disjoint()
Browse files Browse the repository at this point in the history
  • Loading branch information
nigoroll committed Jul 11, 2023
1 parent d353c41 commit d99f62a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/libvcc/vcc_acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ vcl_acl_disjoint(const struct acl_e *ae1, const struct acl_e *ae2)

p1 = ae1->data;
p2 = ae2->data;
m = ae1->mask;
if (ae2->mask < m)
m = ae2->mask;
m = vmin_t(unsigned, ae1->mask, ae2->mask);
for (; m >= 8; m -= 8) {
CMP(*p1, *p2);
p1++;
Expand Down

0 comments on commit d99f62a

Please sign in to comment.