diff options
author | Damien George <damien.p.george@gmail.com> | 2017-08-21 22:04:23 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-08-21 22:04:23 +1000 |
commit | f5309fc4ffa2ee2bf562e18eef3e16e1c22dfb66 (patch) | |
tree | 9d36c201b0a15d61caba32994289072b76e6407a /py/formatfloat.c | |
parent | 103ae43f95313a82674d45a2b654528d5da89435 (diff) | |
download | micropython-f5309fc4ffa2ee2bf562e18eef3e16e1c22dfb66.tar.gz micropython-f5309fc4ffa2ee2bf562e18eef3e16e1c22dfb66.zip |
py/formatfloat: Don't post-increment variable that won't be used again.
Diffstat (limited to 'py/formatfloat.c')
-rw-r--r-- | py/formatfloat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/formatfloat.c b/py/formatfloat.c index 4130e8b26b..35cd5d51af 100644 --- a/py/formatfloat.c +++ b/py/formatfloat.c @@ -118,7 +118,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch *s++ = '?'; } if (buf_size >= 1) { - *s++ = '\0'; + *s = '\0'; } return buf_size >= 2; } |