This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 5c43ef4eafb arch: xtensa: fix INT32_C macro to match int32_t type
5c43ef4eafb is described below
commit 5c43ef4eafb1dc4e17777edec83c27692bb94746
Author: Adwait Godbole <[email protected]>
AuthorDate: Sun Feb 1 16:48:59 2026 +0530
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 <[email protected]>
---
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