Fix: max_t/min_t macros are missing cast on input
[lttng-tools.git] / src / common / macros.h
index c42cddd5050ca163a612e9f1744f9b7aaf03da5b..f242da481b6f8c7c47ddf30064894b3ef35564e8 100644 (file)
@@ -72,7 +72,7 @@ void *zmalloc(size_t len)
 #endif
 
 #ifndef max_t
-#define max_t(type, a, b)      ((type) max(a, b))
+#define max_t(type, a, b)      max((type) a, (type) b)
 #endif
 
 #ifndef min
@@ -80,7 +80,7 @@ void *zmalloc(size_t len)
 #endif
 
 #ifndef min_t
-#define min_t(type, a, b)      ((type) min(a, b))
+#define min_t(type, a, b)      min((type) a, (type) b)
 #endif
 
 #ifndef LTTNG_PACKED
This page took 0.023358 seconds and 4 git commands to generate.