mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
Fix improper handling of 64 bit types for libvsprintf
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user