1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02:00

Small optimization

This commit is contained in:
Zeev Suraski
2000-06-02 12:24:24 +00:00
parent 8a8c3eafc8
commit ab36e22aeb
+6 -3
View File
@@ -636,9 +636,12 @@ char *_php_math_number_format(double d,int dec,char dec_point,char thousand_sep)
return tmpbuf;
}
for (t=tmpbuf; *t; t++) {
if (*t=='.') {
*t = dec_point;
if (dec_point!='.') {
for (t=tmpbuf; *t; t++) {
if (*t=='.') {
*t = dec_point;
break;
}
}
}
if (dec) {