Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add static_cast
Browse files Browse the repository at this point in the history
Jan Caha committed Nov 6, 2024
1 parent 2ac9672 commit 77f55c2
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mdal/frmts/mdal_xmdf.cpp
Original file line number Diff line number Diff line change
@@ -556,7 +556,7 @@ std::unique_ptr< MDAL::Mesh > MDAL::DriverXmdf::load( const std::string &meshFil
facesData.clear();

// copy only the faces that have been properly filled
faces = Faces( faces.begin(), faces.begin() + currentFaceIndex );
faces = Faces( faces.begin(), faces.begin() + static_cast<long>( currentFaceIndex ) );

// create the mesh and set the required data
std::unique_ptr< MemoryMesh > mesh(
2 changes: 1 addition & 1 deletion mdal/mdal.cpp
Original file line number Diff line number Diff line change
@@ -605,7 +605,7 @@ void MDAL_M_RemoveDatasetGroup( MDAL_MeshH mesh, int index )
}
size_t i = static_cast<size_t>( index );

m->datasetGroups.erase( m->datasetGroups.begin() + i );
m->datasetGroups.erase( m->datasetGroups.begin() + static_cast<long>( i ) );
}

const char *MDAL_M_driverName( MDAL_MeshH mesh )

0 comments on commit 77f55c2

Please sign in to comment.