I was trying to fix this error from clang: Const qualifier of data object 'this->stride' was removed via cast expression '(int)this->stride', see https://cmssdt.cern.ch/SDT/scan-build/2013-03-19-1/report-Pzq1HO.html#EndPath