Skip to content

Commit 7aa399a

Browse files
committed
Fix what seems to be an upstream bug caused by a misplaced parenthesis.
1 parent 9a3f4e1 commit 7aa399a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libaatm/src/ATMProfile.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -1694,9 +1694,10 @@ size_t AtmProfile::mkAtmProfile()
16941694
minmin = 20000.0;
16951695

16961696
for(k = 0; k < 20; k++) {
1697-
1698-
if( (fabs(v_layerPressure[i - 1] - dp * pow(dp1, (int)(i - 1)) > 1.05*px[typeAtm_ - 1][k])) &&
1699-
(fabs(v_layerPressure[i - 1] - dp * pow(dp1, (int)(i - 1)) - px[typeAtm_ - 1][k])) <= minmin ) {
1697+
if(
1698+
(fabs(v_layerPressure[i - 1] - dp * pow(dp1, (int)(i - 1) ) ) > 1.05*px[typeAtm_ - 1][k] ) &&
1699+
(fabs(v_layerPressure[i - 1] - dp * pow(dp1, (int)(i - 1) ) - px[typeAtm_ - 1][k]) <= minmin)
1700+
) {
17001701

17011702
j = k;
17021703

0 commit comments

Comments
 (0)