Skip to content

Commit

Permalink
[MTL] Avoid int to double and back conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
endJunction committed Aug 24, 2024
1 parent 8db8708 commit a921bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MeshToolsLib/ZeroMeshFieldDataByMaterialIDs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void zeroMeshFieldDataByMaterialIDs(
std::transform(element_ip_data_offsets.begin(),
element_ip_data_offsets.end(),
element_ip_data_offsets.begin(),
[n = n_components](double const v)
[n = n_components](std::size_t const v)
{ return v / n; });
}

Expand Down

0 comments on commit a921bff

Please sign in to comment.