Minor fixes

This commit is contained in:
Simon Giraudot 2021-02-02 08:27:44 +01:00
parent 96d7c72ffa
commit 5aeb07d654
2 changed files with 2 additions and 2 deletions

View File

@ -640,7 +640,7 @@ public:
std::size_t i = 0;
for (const FT& f : cartesian_range(m_bbox_min))
{
bary[i] = node.global_coordinates()[i] * size + (size / 2.0) + f;
bary[i] = FT(node.global_coordinates()[i]) * size + size / 2.0 + f;
++ i;
}

View File

@ -102,7 +102,7 @@ public:
/*!
\brief returns `true` if `n` should be split, `false` otherwise.
*/
template<template Node>
template<typename Node>
bool operator()(const Node &n) const {
size_t num_points = n.size();
size_t depth = n.depth();