]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Arm build breakage with MAX_INT macro issues
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 3 Aug 2016 14:26:31 +0000 (10:26 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 3 Aug 2016 19:11:44 +0000 (15:11 -0400)
commitc152e0c131786a2ddc1bfdc5d5bcbe503adc4617
tree13be01a8656f8014a6a05795c8027f7d056a9ccc
parent161995ea541d809118af16a4eb20d03572d32379
lib: Arm build breakage with MAX_INT macro issues

The VTY_GET_INTEGER_RANGE macro is failing on arm
with a warning->error issue where we are passing in
a unsigned MAXINT to this macro and it is complaining
that the comparison of (TMPL) > MAXINT is always going
to be false because of data structure size.

I've changed the tmp variable to a unsigned long long
which alleviates this issue.

Ticket: CM-12187
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
lib/vty.h