fix: int8_t is not considered an integer
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 25 Mar 2021 17:07:21 +0000 (13:07 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Mar 2021 18:01:15 +0000 (14:01 -0400)
Add 'signed char' to the list of types we consider integers. Since 'char'
being signed or unsigned is implementation dependant, we have to
explicitly list 'char', 'signed char' and 'unsigned char' as integer
types.

Change-Id: I3aace2621f14f54e5d88d43de509a6cffde66c5b
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-utils.h

index 23d1a07c01081aa55e7279c86d6915b495c271f2..baca88f271184840512ea97745320d8bef65e333 100644 (file)
@@ -42,6 +42,7 @@
 #define lttng_ust_is_integer_type(type) \
                (__builtin_types_compatible_p(type, _Bool) || \
                __builtin_types_compatible_p(type, char) || \
+               __builtin_types_compatible_p(type, signed char) || \
                __builtin_types_compatible_p(type, unsigned char) || \
                __builtin_types_compatible_p(type, short) || \
                __builtin_types_compatible_p(type, unsigned short) || \
This page took 0.025843 seconds and 4 git commands to generate.