Commit 933e9e407b
broke the simulator on a 64-bit platform.
This commit is contained in:
parent
c71f2fa56f
commit
eef2f4599e
@ -69,9 +69,15 @@
|
||||
|
||||
/* These change on 32-bit and 64-bit platforms */
|
||||
|
||||
#if !defined(CONFIG_HOST_X86_64) || defined(CONFIG_SIM_M32)
|
||||
# define LONG_MIN (-LONG_MAX - 1)
|
||||
# define LONG_MAX 2147483647L
|
||||
# define ULONG_MAX 4294967295UL
|
||||
#else
|
||||
# define LONG_MIN (-LLONG_MAX - 1)
|
||||
# define LONG_MAX 9223372036854775807LL
|
||||
# define ULONG_MAX 18446744073709551615ULL
|
||||
#endif
|
||||
|
||||
#define LLONG_MIN (-LLONG_MAX - 1)
|
||||
#define LLONG_MAX 9223372036854775807LL
|
||||
|
@ -395,7 +395,7 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream,
|
||||
c = 'l';
|
||||
break;
|
||||
|
||||
#ifdef CONFIG_HAVE_LONG_LONG
|
||||
#if defined(CONFIG_LIBC_LONG_LONG) && ULLONG_MAX != ULONG_MAX
|
||||
case sizeof(unsigned long long):
|
||||
c = 'l';
|
||||
flags |= FL_LONG;
|
||||
|
Loading…
Reference in New Issue
Block a user