[vlc-commits] vlc_arrays: fix missing parenthesis
Thomas Guillem
git at videolan.org
Tue May 30 10:58:23 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue May 30 10:55:36 2017 +0200| [cc3bf9f96f1ff7ad909e884e066db142fe49ed32] | committer: Thomas Guillem
vlc_arrays: fix missing parenthesis
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cc3bf9f96f1ff7ad909e884e066db142fe49ed32
---
include/vlc_arrays.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/vlc_arrays.h b/include/vlc_arrays.h
index cd54b11d80..5e5ef45458 100644
--- a/include/vlc_arrays.h
+++ b/include/vlc_arrays.h
@@ -157,7 +157,7 @@ static inline void *realloc_down( void *ptr, size_t size )
if( (array).i_alloc < 10 ) \
_ARRAY_ALLOC(array, 10 ) \
else if( (array).i_alloc == (array).i_size ) \
- _ARRAY_ALLOC(array, (int)(array.i_alloc * 1.5) ) \
+ _ARRAY_ALLOC(array, (int)((array).i_alloc * 1.5) ) \
}
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
More information about the vlc-commits
mailing list