Commit 4edec0d6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

FOREACH_ARRAY: expansion safety

parent e3f0531d
...@@ -272,9 +272,9 @@ ...@@ -272,9 +272,9 @@
#define FOREACH_ARRAY( item, array ) { \ #define FOREACH_ARRAY( item, array ) { \
int fe_idx; \ int fe_idx; \
for( fe_idx = 0 ; fe_idx < array.i_size ; fe_idx++ ) \ for( fe_idx = 0 ; fe_idx < (array).i_size ; fe_idx++ ) \
{ \ { \
item = array.p_elems[fe_idx]; item = (array).p_elems[fe_idx];
#define FOREACH_END() } } #define FOREACH_END() } }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment