aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/vec.h
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2017-06-20 12:26:23 +0200
committerNeale Ranns <nranns@cisco.com>2017-06-20 12:58:29 +0000
commitf908a0350adc0e0d2d96cdd4ace52b2f12f261f6 (patch)
tree2dfa098d57dfdac97b467bb2d5c4941d75cfb913 /src/vppinfra/vec.h
parent1e8db5fb6fd4c6cd168b0e6ec2f08b4af1e0093f (diff)
Parenthesize the usage of the macro argument within vec_search() macro definition
Change-Id: I488d7c2b864c0e3661c8abf0363e4b97984d4974 Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'src/vppinfra/vec.h')
-rw-r--r--src/vppinfra/vec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/vec.h b/src/vppinfra/vec.h
index 1994d81cdb3..de90abf0c61 100644
--- a/src/vppinfra/vec.h
+++ b/src/vppinfra/vec.h
@@ -943,7 +943,7 @@ do { \
word _v(i) = 0; \
while (_v(i) < vec_len(v)) \
{ \
- if (v[_v(i)] == E) \
+ if ((v)[_v(i)] == E) \
break; \
_v(i)++; \
} \