aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vty/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vty/command.c b/src/vty/command.c
index b38be34e..4825109e 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -727,7 +727,7 @@ static int vty_dump_element(const struct cmd_element *cmd, print_func_t print_fu
char flag;
/* Skip attribute if *not* set */
- if (~cmd->usrattr & (1 << i))
+ if (~cmd->usrattr & ((unsigned)1 << i))
continue;
xml_att_desc = xml_escape(desc[i]);