From e2627d45586366bd127593b37c1fd40629b1e4e2 Mon Sep 17 00:00:00 2001 From: PwnVerse Date: Wed, 15 Nov 2023 10:56:43 -0500 Subject: [PATCH] Fix improper handling of 64 bit types for libvsprintf --- libs/libc/stdio/lib_libvsprintf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/libc/stdio/lib_libvsprintf.c b/libs/libc/stdio/lib_libvsprintf.c index 5933ba7713..9d2ba02b7e 100644 --- a/libs/libc/stdio/lib_libvsprintf.c +++ b/libs/libc/stdio/lib_libvsprintf.c @@ -407,16 +407,16 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream, c = 'h'; break; - case sizeof(unsigned long): - c = 'l'; - break; - #if defined(CONFIG_HAVE_LONG_LONG) && ULLONG_MAX != ULONG_MAX case sizeof(unsigned long long): c = 'l'; flags |= FL_LONG; flags &= ~FL_SHORT; break; +#else + case sizeof(unsigned long): + c = 'l'; + break; #endif } }