mirror of
https://github.com/apache/nuttx.git
synced 2026-08-12 07:55:32 +00:00
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:
parent
5024a67514
commit
5c43ef4eaf
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue