X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Fbitfield.h;h=ef5453c29be2397b225126daa8b2515abdb33c61;hb=d6ddec3f8a747381dfb2af999731b83379713960;hp=391cf5098969c1a69e81bae44076a32997a4e64b;hpb=71c3cf5827894d434b8ad8ec2494d51ca4ee0a3d;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) \ ({ \