mirror of
https://github.com/micropython/micropython.git
synced 2025-08-29 05:50:40 +02:00
py/formatfloat: Don't post-increment variable that won't be used again.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user