mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
py: Remove unnecessary extra handling of padding of nan/inf.
C's printf will pad nan/inf differently to CPython. Our implementation originally conformed to C, now it conforms to CPython's way. Tests for this are also added in this patch.
This commit is contained in:
@@ -37,8 +37,7 @@
|
||||
#define PF_FLAG_PAD_AFTER_SIGN (0x040)
|
||||
#define PF_FLAG_CENTER_ADJUST (0x080)
|
||||
#define PF_FLAG_ADD_PERCENT (0x100)
|
||||
#define PF_FLAG_PAD_NAN_INF (0x200)
|
||||
#define PF_FLAG_SHOW_OCTAL_LETTER (0x400)
|
||||
#define PF_FLAG_SHOW_OCTAL_LETTER (0x200)
|
||||
|
||||
typedef void (*mp_print_strn_t)(void *data, const char *str, mp_uint_t len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user