Skip to content

Commit c94649f

Browse files
author
Christian Schulte
committed
Fixed very bad coding style
1 parent e09ac91 commit c94649f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gecode/float/arithmetic/pow-nroot.hpp

100644100755
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ namespace Gecode { namespace Float { namespace Arithmetic {
5959
return ES_OK;
6060
}
6161

62-
if ((n % 2) == 0)
63-
{
62+
if ((n % 2) == 0) {
6463
if (x0.min() >= 0)
6564
GECODE_ME_CHECK(x0.eq(home,nroot(x1.domain(),n)));
6665
else if (x0.max() <= 0)
@@ -72,8 +71,9 @@ namespace Gecode { namespace Float { namespace Arithmetic {
7271
-nroot(x1.domain(),n)
7372
)
7473
));
75-
} else
74+
} else {
7675
GECODE_ME_CHECK(x0.eq(home,nroot(x1.domain(),n)));
76+
}
7777

7878
if (!x0.assigned()) (void) new (home) Pow<A,B>(home,x0,x1,n);
7979
return ES_OK;
@@ -101,8 +101,7 @@ namespace Gecode { namespace Float { namespace Arithmetic {
101101
return home.ES_SUBSUMED(*this);
102102
}
103103

104-
if ((m_n % 2) == 0)
105-
{
104+
if ((m_n % 2) == 0) {
106105
if (x0.min() >= 0)
107106
GECODE_ME_CHECK(x0.eq(home,nroot(x1.domain(),m_n)));
108107
else if (x0.max() <= 0)
@@ -114,8 +113,9 @@ namespace Gecode { namespace Float { namespace Arithmetic {
114113
-nroot(x1.domain(),m_n)
115114
)
116115
));
117-
} else
116+
} else {
118117
GECODE_ME_CHECK(x0.eq(home,nroot(x1.domain(),m_n)));
118+
}
119119
return x0.assigned() ? home.ES_SUBSUMED(*this) : ES_FIX;
120120
}
121121

0 commit comments

Comments
 (0)