summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5FLprivate.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5FLprivate.h b/src/H5FLprivate.h
index 749882f..4f3d938 100644
--- a/src/H5FLprivate.h
+++ b/src/H5FLprivate.h
@@ -236,10 +236,10 @@ typedef struct H5FL_arr_head_t {
#define H5FL_ARR_DEFINE(t,m) H5_DLL H5FL_ARR_DEFINE_COMMON(t,m)
#define H5FL_ARR_EXTERN(t) extern H5_DLL int H5FL_ARR_NAME(t)
#define H5FL_ARR_DEFINE_STATIC(t,m) static H5FL_ARR_DEFINE_COMMON(t,m)
-#define H5FL_ARR_MALLOC(t,elem) H5MM_malloc(elem*sizeof(t))
-#define H5FL_ARR_CALLOC(t,elem) H5MM_calloc(elem*sizeof(t))
+#define H5FL_ARR_MALLOC(t,elem) H5MM_malloc((elem)*sizeof(t))
+#define H5FL_ARR_CALLOC(t,elem) H5MM_calloc((elem)*sizeof(t))
#define H5FL_ARR_FREE(t,obj) H5MM_xfree(obj)
-#define H5FL_ARR_REALLOC(t,obj,new_elem) H5MM_realloc(obj,new_elem*sizeof(t))
+#define H5FL_ARR_REALLOC(t,obj,new_elem) H5MM_realloc(obj,(new_elem)*sizeof(t))
#endif /* H5_NO_ARR_FREE_LISTS */
/*