X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;h=f242da481b6f8c7c47ddf30064894b3ef35564e8;hp=c42cddd5050ca163a612e9f1744f9b7aaf03da5b;hb=46e3b92d23394e8269bcacc6994443617d112e25;hpb=2daf65025e0fe5c15179dc4bfb26f875e3d31a26 diff --git a/src/common/macros.h b/src/common/macros.h index c42cddd50..f242da481 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 @@ -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