For the "ordered comparison of pointer with integer zero" warning, fix
this by comparing (type) -1 against (type) 0 instead of just 0, so if
"type" is a pointer type, this pointer type will be applied to the right
operand too, thus fixing the warning.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
___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) \
({ \
#define lttng_alignof(type) 1
#endif
-#define lttng_is_signed_type(type) (((type)(-1)) < 0)
+#define lttng_is_signed_type(type) ((type) -1 < (type) 0)
#endif /* _LTTNG_UST_TRACER_H */