From: Michael Jeanson Date: Thu, 25 Mar 2021 17:07:21 +0000 (-0400) Subject: fix: int8_t is not considered an integer X-Git-Tag: v2.13.0-rc1~187 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d465835d05ead88505e49aa62319b22dfc1fc026;p=lttng-ust.git fix: int8_t is not considered an integer 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 Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/ust-utils.h b/include/lttng/ust-utils.h index 23d1a07c..baca88f2 100644 --- a/include/lttng/ust-utils.h +++ b/include/lttng/ust-utils.h @@ -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) || \