From d465835d05ead88505e49aa62319b22dfc1fc026 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 25 Mar 2021 13:07:21 -0400 Subject: [PATCH] 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 --- include/lttng/ust-utils.h | 1 + 1 file changed, 1 insertion(+) 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) || \ -- 2.34.1