Explorar o código

Update D3MFImporter.cpp

Use static cast instead of c-cast.
Kim Kulling %!s(int64=7) %!d(string=hai) anos
pai
achega
d0edb94208
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/D3MFImporter.cpp

+ 1 - 1
code/D3MFImporter.cpp

@@ -282,7 +282,7 @@ private:
                     MatIdArray = it->second;
                 }
             }
-            MatIdArray.push_back( (unsigned int)newMatIdx );
+            MatIdArray.push_back( static_cast<unsigned int>( newMatIdx ) );
             mMatId2MatArray[ mActiveMatGroup ] = MatIdArray;
         }