summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpprint.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-05-28 14:22:12 +0000
committerDamien George <damien.p.george@gmail.com>2015-05-28 14:22:12 +0000
commit79474c6b164fb66a8d348bfa57613f9dbf5af4e8 (patch)
treed449229d7ee01f114d092a624943bb42d79a72a5 /py/mpprint.h
parent2cae0f62908812b6cd925943ee70e7e0bef0387e (diff)
downloadmicropython-79474c6b164fb66a8d348bfa57613f9dbf5af4e8.tar.gz
micropython-79474c6b164fb66a8d348bfa57613f9dbf5af4e8.zip
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.
Diffstat (limited to 'py/mpprint.h')
-rw-r--r--py/mpprint.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/py/mpprint.h b/py/mpprint.h
index ceea3b978d..1770fcffe3 100644
--- a/py/mpprint.h
+++ b/py/mpprint.h
@@ -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);