commit | f908a0350adc0e0d2d96cdd4ace52b2f12f261f6 | [log] [tgz] |
---|---|---|
author | Andrew Yourtchenko <ayourtch@gmail.com> | Tue Jun 20 12:26:23 2017 +0200 |
committer | Neale Ranns <nranns@cisco.com> | Tue Jun 20 12:58:29 2017 +0000 |
tree | 2dfa098d57dfdac97b467bb2d5c4941d75cfb913 | |
parent | 1e8db5fb6fd4c6cd168b0e6ec2f08b4af1e0093f [diff] [blame] |
Parenthesize the usage of the macro argument within vec_search() macro definition Change-Id: I488d7c2b864c0e3661c8abf0363e4b97984d4974 Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
diff --git a/src/vppinfra/vec.h b/src/vppinfra/vec.h index 1994d81..de90abf 100644 --- a/src/vppinfra/vec.h +++ b/src/vppinfra/vec.h
@@ -943,7 +943,7 @@ word _v(i) = 0; \ while (_v(i) < vec_len(v)) \ { \ - if (v[_v(i)] == E) \ + if ((v)[_v(i)] == E) \ break; \ _v(i)++; \ } \