Fix improper handling of 64 bit types for libvsprintf

This commit is contained in:
PwnVerse 2023-11-15 10:56:43 -05:00 committed by Xiang Xiao
parent 0dedbcd4ae
commit e2627d4558

View file

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