Skip to content

Commit 39f70b9

Browse files
committed
warning: suggest parentheses around assignment used as truth value [-Wparentheses]
1 parent 64651de commit 39f70b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

g_fmt.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ char *php_memcached_g_fmt(register char *b, double x) {
4848
if (sign)
4949
*b++ = '-';
5050
if (decpt == 9999) /* Infinity or Nan */ {
51-
while(*b++ = *s++);
51+
while((*b++ = *s++));
5252
goto done0;
5353
}
5454
if (decpt <= -4 || decpt > se - s + 5) {
5555
*b++ = *s++;
5656
if (*s) {
5757
*b++ = '.';
58-
while(*b = *s++)
58+
while((*b = *s++))
5959
b++;
6060
}
6161
*b++ = 'e';
@@ -80,9 +80,9 @@ char *php_memcached_g_fmt(register char *b, double x) {
8080
*b++ = '.';
8181
for(; decpt < 0; decpt++)
8282
*b++ = '0';
83-
while(*b++ = *s++);
83+
while((*b++ = *s++));
8484
} else {
85-
while(*b = *s++) {
85+
while((*b = *s++)) {
8686
b++;
8787
if (--decpt == 0 && *s)
8888
*b++ = '.';

0 commit comments

Comments
 (0)