X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;h=13f51d9d1cb4d6fe7c3191e6a59e94b9a57643bd;hb=3eb7b04e0c3d422a18fc5ef8e61948f0fdc5e1e3;hp=7eaf27cdf3787cbf02d5c4fc2bc48eb43632b734;hpb=25683b5a7d8178d42cb33f9f060a5b9f2aa45d5c;p=lttng-tools.git diff --git a/src/common/macros.h b/src/common/macros.h index 7eaf27cdf..13f51d9d1 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -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