Fix: max_t/min_t macros are missing cast on input
[lttng-tools.git] / src / common / macros.h
index 90849ed30ae5e543a577f9214bc33152864751f8..9637a383013629baf868dfca60dc15a65da05757 100644 (file)
@@ -63,7 +63,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.024958 seconds and 5 git commands to generate.