Skip to content

Commit 98febec

Browse files
committed
Fix int8/uint8 type in LinPad2Y for GPUTPCCompressionTrackModel
1 parent 9a4e708 commit 98febec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GPU/GPUTracking/DataCompression/GPUTPCCompressionTrackModel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ class GPUTPCCompressionTrackModel
100100
GPUd() void getClusterErrors2(int32_t iRow, float z, float sinPhi, float DzDs, float& ErrY2, float& ErrZ2) const;
101101
GPUd() void resetCovariance();
102102

103-
GPUd() float LinearPad2Y(int32_t slice, float pad, float padWidth, int8_t npads) const
103+
GPUd() float LinearPad2Y(int32_t slice, float pad, float padWidth, uint8_t npads) const
104104
{
105105
const float u = (pad - 0.5f * npads) * padWidth;
106106
return (slice >= GPUCA_NSLICES / 2) ? -u : u;
107107
}
108108

109-
GPUd() float LinearY2Pad(int32_t slice, float y, float padWidth, int8_t npads) const
109+
GPUd() float LinearY2Pad(int32_t slice, float y, float padWidth, uint8_t npads) const
110110
{
111111
const float u = (slice >= GPUCA_NSLICES / 2) ? -y : y;
112112
return u / padWidth + 0.5f * npads;

0 commit comments

Comments
 (0)