Skip to content

Commit f5309fc

Browse files
committed
py/formatfloat: Don't post-increment variable that won't be used again.
1 parent 103ae43 commit f5309fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/formatfloat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
118118
*s++ = '?';
119119
}
120120
if (buf_size >= 1) {
121-
*s++ = '\0';
121+
*s = '\0';
122122
}
123123
return buf_size >= 2;
124124
}

0 commit comments

Comments
 (0)