X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;h=53f5f96c752061448a6f5d1fc629166db2f345a3;hp=e28250f7ed20a7892600c161f6b0921ff10424d3;hb=0c6349626e82044473ea0b3f1ff5456d9a0cd53f;hpb=6c33300eeb9bfbe39a4482b24b1178ae04466c37 diff --git a/src/common/macros.h b/src/common/macros.h index e28250f7e..53f5f96c7 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -85,7 +85,7 @@ void *zmalloc(size_t len) #endif #endif -#define is_signed(type) (((type) (-1)) < 0) +#define is_signed(type) (((type) -1) < (type) 1) /* * Align value to the next multiple of align. Returns val if it already is a