Fix: max_t/min_t macros are missing cast on input
[lttng-tools.git] / src / common / macros.h
index 7eaf27cdf3787cbf02d5c4fc2bc48eb43632b734..13f51d9d1cb4d6fe7c3191e6a59e94b9a57643bd 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
This page took 0.023467 seconds and 4 git commands to generate.