mirror of
https://github.com/apache/nuttx.git
synced 2026-08-04 22:00:21 +00:00
libc/stdio: Don't set FL_[LONG|SHORT] repeatly in vsprintf_internal
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
df6666ab5e
commit
33e35c6ce3
1 changed files with 8 additions and 2 deletions
|
|
@ -459,8 +459,11 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream,
|
|||
{
|
||||
flags |= FL_REPD_TYPE;
|
||||
}
|
||||
else
|
||||
{
|
||||
flags |= FL_LONG;
|
||||
}
|
||||
|
||||
flags |= FL_LONG;
|
||||
flags &= ~FL_SHORT;
|
||||
continue;
|
||||
}
|
||||
|
|
@ -471,8 +474,11 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream,
|
|||
{
|
||||
flags |= FL_REPD_TYPE;
|
||||
}
|
||||
else
|
||||
{
|
||||
flags |= FL_SHORT;
|
||||
}
|
||||
|
||||
flags |= FL_SHORT;
|
||||
flags &= ~FL_LONG;
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue