cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Cvs-cvs] ccvs/src ChangeLog client.c


From: address@hidden
Subject: RE: [Cvs-cvs] ccvs/src ChangeLog client.c
Date: Thu, 4 May 2006 11:49:32 -0400

Derek Robert Price writes:
>
> -         while (q = pop (stack))
> +         while ((q = pop (stack)))

The double parentheses trick only works for GCC, not other compilers
that warn about suspicious assignments.  It's better to go ahead and
add the explicit comparison:

            while ((q = pop (stack)) != NULL)

-Larry Jones


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .






reply via email to

[Prev in Thread] Current Thread [Next in Thread]