fix: clang warning '-Wnull-pointer-subtraction' in lttng_ust_is_pointer_type
[lttng-ust.git] / include / lttng / ust-utils.h
index 25b8c7fdb835d55c9f815278c4c2aa1386c1a648..d815cf0cc465ef5f3a8864e12d5125fed85057ff 100644 (file)
@@ -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
 
 
This page took 0.025419 seconds and 4 git commands to generate.