X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;h=9637a383013629baf868dfca60dc15a65da05757;hb=1da7b8633e51517a4daf5a0d252595e936084338;hp=90849ed30ae5e543a577f9214bc33152864751f8;hpb=f6739b01e44d8f106e5e971ea2551f5e6fb75cf9;p=lttng-tools.git diff --git a/src/common/macros.h b/src/common/macros.h index 90849ed30..9637a3830 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -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