From: Andrew Yourtchenko Date: Tue, 20 Jun 2017 10:26:23 +0000 (+0200) Subject: Parenthesize the usage of the macro argument within vec_search() macro definition X-Git-Tag: v17.07-rc1~23 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=f908a0350adc0e0d2d96cdd4ace52b2f12f261f6 Parenthesize the usage of the macro argument within vec_search() macro definition Change-Id: I488d7c2b864c0e3661c8abf0363e4b97984d4974 Signed-off-by: Andrew Yourtchenko --- 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)++; \ } \