mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 02:46:47 +00:00
🐛 输出负数时出错
This commit is contained in:
parent
a5feaebb73
commit
95dc53bda8
@ -405,7 +405,7 @@ static int vsprintf(char *buf, const char *fmt, va_list args)
|
|||||||
return str - buf;
|
return str - buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *write_num(char *str, ull num, int base, int field_width, int precision, int flags)
|
static char *write_num(char *str, ll num, int base, int field_width, int precision, int flags)
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @brief 将数字按照指定的要求转换成对应的字符串
|
* @brief 将数字按照指定的要求转换成对应的字符串
|
||||||
|
@ -88,7 +88,7 @@ static int vsprintf(char *buf, const char *fmt, va_list args);
|
|||||||
* @param precision 精度
|
* @param precision 精度
|
||||||
* @param flags 标志位
|
* @param flags 标志位
|
||||||
*/
|
*/
|
||||||
static char *write_num(char *str, ull num, int base, int field_width, int precision, int flags);
|
static char *write_num(char *str, ll num, int base, int field_width, int precision, int flags);
|
||||||
|
|
||||||
static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags);
|
static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user