py/formatfloat: Don't post-increment variable that won't be used again.
This commit is contained in:
parent
103ae43f95
commit
f5309fc4ff
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user