]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSAlignMille2ConstrArray.cxx
Fix for a Coverity warning (Ruben)
[u/mrichter/AliRoot.git] / ITS / AliITSAlignMille2ConstrArray.cxx
index 73b9d29a6b86a4aac9b828806acb7b44f6bb168c..84c0b340ce4b3ef8b4de8e2abfc02bd45db34063 100644 (file)
@@ -50,7 +50,7 @@ void AliITSAlignMille2ConstrArray::AddModule(AliITSAlignMille2Module* mod, Bool_
     if (mod->GeomParamsGlobal()) {
       // the constraint is defined in the module's local frame. If the alignment of geom params is
       // done in the global frame, we need to set the real parameter involved
-      patt &= 0xffff<< AliITSAlignMille2Module::kMaxParGeom;     // reset the geometry parameters
+      patt &= (Short_t) 0xffff & (0xffff<< AliITSAlignMille2Module::kMaxParGeom);     // reset the geometry parameters
       for (int i=0;i<AliITSAlignMille2Module::kMaxParGeom;i++) {
        if (!IncludesParam(i)) continue;
        for (int j=0;j<AliITSAlignMille2Module::kMaxParGeom;j++) if (jacobian[i][j]!=0) patt |= (0x1<<j);