X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-utils.h;h=d815cf0cc465ef5f3a8864e12d5125fed85057ff;hb=a9bd72496f60cd4cddb435cc6804381d6061feda;hp=25b8c7fdb835d55c9f815278c4c2aa1386c1a648;hpb=8449a229b6adf4ed87d34ef4d6f128e2177c3354;p=lttng-ust.git diff --git a/include/lttng/ust-utils.h b/include/lttng/ust-utils.h index 25b8c7fd..d815cf0c 100644 --- a/include/lttng/ust-utils.h +++ b/include/lttng/ust-utils.h @@ -68,7 +68,7 @@ #else /* The difference between two pointers is an integer. */ #define lttng_ust_is_pointer_type(type) \ - (lttng_ust_is_integer_type(typeof(((type)0 - (type)0))) && !lttng_ust_is_integer_type(type)) + (lttng_ust_is_integer_type(typeof(((type)1 - (type)1))) && !lttng_ust_is_integer_type(type)) #endif