Skip to content

Commit

Permalink
Fix this 'if' clause does not guard... [-Wmisleading-indentation]
Browse files Browse the repository at this point in the history
  • Loading branch information
gartung committed Jun 27, 2016
1 parent dba7074 commit e4693e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MagneticField/Interpolation/src/MagneticFieldGrid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ void MagneticFieldGrid::interpolateAtPoint(double X1, double X2, double X3, floa
int index1[3] = {0,0,0};
for (int i=0; i<3; ++i){
if (NumberOfPoints[i] > 1){
index0[i] = max(0,index[i]);
index0[i] = max(0,index[i]);
if (index0[i] > NumberOfPoints[i]-2) index0[i] = NumberOfPoints[i]-2;
index1[i] = max(1,index[i]+1);
index1[i] = max(1,index[i]+1);
if (index1[i] > NumberOfPoints[i]-1) index1[i] = NumberOfPoints[i]-1;
}
}
Expand Down

0 comments on commit e4693e7

Please sign in to comment.