From f908a0350adc0e0d2d96cdd4ace52b2f12f261f6 Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Tue, 20 Jun 2017 12:26:23 +0200 Subject: Parenthesize the usage of the macro argument within vec_search() macro definition Change-Id: I488d7c2b864c0e3661c8abf0363e4b97984d4974 Signed-off-by: Andrew Yourtchenko --- src/vppinfra/vec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vppinfra') diff --git a/src/vppinfra/vec.h b/src/vppinfra/vec.h index 1994d81c..de90abf0 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)++; \ } \ -- cgit 1.2.3-korg