Skip to content

Commit 5affeb2

Browse files
committed
static cast in the reader
1 parent 58e0e26 commit 5affeb2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

io/include/detray/io/common/material_map_reader.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ class material_map_reader {
8989
std::vector<std::vector<scalar_t>> axis_spans = {};
9090
for (const auto &axis_data : grid_data.axes) {
9191
axis_spans.push_back(
92-
{axis_data.edges.front(), axis_data.edges.back()});
92+
{static_cast<scalar_t>(axis_data.edges.front()),
93+
static_cast<scalar_t>(axis_data.edges.back())});
9394
}
9495

9596
// Get the local bin indices and the material parametrization

0 commit comments

Comments
 (0)