summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-08-03 16:26:31 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-08-03 21:11:44 +0200
commitc152e0c131786a2ddc1bfdc5d5bcbe503adc4617 (patch)
tree13be01a8656f8014a6a05795c8027f7d056a9ccc
parentbgpd: Add command to prefer global ipv6 address (diff)
downloadfrr-c152e0c131786a2ddc1bfdc5d5bcbe503adc4617.tar.xz
frr-c152e0c131786a2ddc1bfdc5d5bcbe503adc4617.zip
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>
-rw-r--r--lib/vty.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vty.h b/lib/vty.h
index 81251e07b..599882a38 100644
--- a/lib/vty.h
+++ b/lib/vty.h
@@ -220,7 +220,7 @@ do { \
#define VTY_GET_INTEGER_RANGE(NAME,V,STR,MIN,MAX) \
do { \
- unsigned long tmpl; \
+ unsigned long long tmpl; \
VTY_GET_INTEGER_RANGE_HEART(NAME,tmpl,STR,MIN,MAX); \
(V) = tmpl; \
} while (0)