py/formatfloat: Don't post-increment variable that won't be used again.

This commit is contained in:
Damien George 2017-08-21 22:04:23 +10:00
parent 103ae43f95
commit f5309fc4ff

View File

@ -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;
}