From 5c43ef4eafb1dc4e17777edec83c27692bb94746 Mon Sep 17 00:00:00 2001 From: Adwait Godbole Date: Sun, 1 Feb 2026 16:48:59 +0530 Subject: [PATCH] arch: xtensa: fix INT32_C macro to match int32_t type INT32_C(x) is currently defined as x ## ll on Xtensa, which produces a long long int constant. However, int32_t is defined as long int on this architecture. This mismatch can break C++ template overload resolution and causes build failures in downstream projects such as PX4. Fix the macro by using x ## l so INT32_C expands to the same underlying type as int32_t. Signed-off-by: Adwait Godbole --- arch/xtensa/include/inttypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/include/inttypes.h b/arch/xtensa/include/inttypes.h index 386f346c2d2..a5714fd0731 100644 --- a/arch/xtensa/include/inttypes.h +++ b/arch/xtensa/include/inttypes.h @@ -110,7 +110,7 @@ #define INT8_C(x) x #define INT16_C(x) x -#define INT32_C(x) x ## ll +#define INT32_C(x) x ## l #define INT64_C(x) x ## ll #define UINT8_C(x) x