Skip to content

Commit b284c64

Browse files
sgorbunodavidrohr
authored andcommitted
fix AliRoot compilation
1 parent a867b5f commit b284c64

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

GPU/TPCFastTransformation/SplineUtil.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ class SplineUtil
3838
// 2 - at least one of the dimensions must be set during runtime
3939
// 3 - specialization where nYdim==1 (a small add-on on top of the other specs)
4040

41+
// calculate it as one return statement to make the AliRoot compiler happy
42+
return (nYdim == 1) ? 3 : ((nXdim > 0 && nYdim > 0) ? 1 : 2);
43+
/*
4144
if (nYdim == 1) {
4245
return 3;
4346
}
@@ -46,6 +49,7 @@ class SplineUtil
4649
} else {
4750
return 2;
4851
}
52+
*/
4953
}
5054

5155
/// Spline1D & Spline2D specialization number depending on nYdim

0 commit comments

Comments
 (0)