diff options
author | Rijnard van Tonder <hi.teresy@gmail.com> | 2018-11-14 13:11:35 -0500 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-11-20 21:23:24 +0100 |
commit | 8881c3c82f75bd67578a774c40888b257a30a18f (patch) | |
tree | 8289de21a7a3b0c07d792a8042c599570e99f13c /main/snprintf.c | |
parent | ef8fbd6fc952058b67bcd0fc0c9b5701407b8b36 (diff) | |
download | php-git-8881c3c82f75bd67578a774c40888b257a30a18f.tar.gz |
Remove redundant continue in for loops
Diffstat (limited to 'main/snprintf.c')
-rw-r--r-- | main/snprintf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/snprintf.c b/main/snprintf.c index 5990e3df91..a3f652c7cf 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -191,8 +191,7 @@ PHPAPI char *php_gcvt(double value, int ndigit, char dec_point, char exponent, c *dst = '\0'; } else { /* XXX - optimize */ - for (sign = decpt, i = 0; (sign /= 10) != 0; i++) - continue; + for (sign = decpt, i = 0; (sign /= 10) != 0; i++); dst[i + 1] = '\0'; while (decpt != 0) { dst[i--] = '0' + decpt % 10; |