mirror of
https://github.com/dlang/phobos.git
synced 2025-05-04 00:54:05 +03:00
Use parens for conditional operator assignment
This commit is contained in:
parent
7ab0e8c4dc
commit
6a12812b6c
1 changed files with 2 additions and 2 deletions
|
@ -1550,14 +1550,14 @@ do
|
|||
// update a, b, v, w, and x
|
||||
if (fu <= fx)
|
||||
{
|
||||
u < x ? b : a = x;
|
||||
(u < x ? b : a) = x;
|
||||
v = w; fv = fw;
|
||||
w = x; fw = fx;
|
||||
x = u; fx = fu;
|
||||
}
|
||||
else
|
||||
{
|
||||
u < x ? a : b = u;
|
||||
(u < x ? a : b) = u;
|
||||
if (fu <= fw || w == x)
|
||||
{
|
||||
v = w; fv = fw;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue