X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fbitfield.h;h=ef5453c29be2397b225126daa8b2515abdb33c61;hb=6f0f3216eb57ce0eda0f0f1195d9f7181bac7d83;hp=391cf5098969c1a69e81bae44076a32997a4e64b;hpb=670c619d5fc86bda34ea606b425be7c1c8f2167c;p=lttng-ust.git diff --git a/include/lttng/bitfield.h b/include/lttng/bitfield.h index 391cf509..ef5453c2 100644 --- a/include/lttng/bitfield.h +++ b/include/lttng/bitfield.h @@ -56,7 +56,7 @@ ___v <<= final; \ }) -#define _bt_is_signed_type(type) (((type)(-1)) < 0) +#define _bt_is_signed_type(type) ((type) -1 < (type) 0) #define _bt_unsigned_cast(type, v) \ ({ \