fixed warning

This commit is contained in:
Sven Oesau 2024-03-28 11:32:06 +01:00
parent 8ddf57a852
commit 3ac63a5b31
1 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ public:
Uniform_coords coords = octree_.global_coordinates(node_index); Uniform_coords coords = octree_.global_coordinates(node_index);
const std::size_t df = depth_factor(octree_.depth(node_index)); const std::size_t df = depth_factor(octree_.depth(node_index));
for(int i=0; i<3; ++i) for(int i=0; i<3; ++i)
coords[i] *= df; coords[i] *= static_cast<uint32_t>(df);
return coords; return coords;
} }
@ -335,7 +335,7 @@ public:
const std::size_t df = depth_factor(octree_.depth(node_index)); const std::size_t df = depth_factor(octree_.depth(node_index));
for(int i=0; i<3; ++i) for(int i=0; i<3; ++i)
v_coords[i] *= df; v_coords[i] *= static_cast<uint32_t>(df);
return v_coords; return v_coords;
} }