From c152e0c131786a2ddc1bfdc5d5bcbe503adc4617 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 3 Aug 2016 10:26:31 -0400 Subject: 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 Reviewed-by: Don Slice --- lib/vty.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3