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 <adwaitngodbole@gmail.com>
This commit is contained in:
Adwait Godbole 2026-02-01 16:48:59 +05:30 committed by Xiang Xiao
parent 5024a67514
commit 5c43ef4eaf

View file

@ -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