X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;h=53f5f96c752061448a6f5d1fc629166db2f345a3;hb=0c6349626e82044473ea0b3f1ff5456d9a0cd53f;hp=e28250f7ed20a7892600c161f6b0921ff10424d3;hpb=1405051ad116a8bd42b68822be6d2f9b3def6c65;p=lttng-tools.git 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