Skip to content

Commit

Permalink
Add missing parameter; (std::min)
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Jul 16, 2024
1 parent 4bc2770 commit 8ef1f72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Kernel_23/include/CGAL/Bbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class Bbox
CGAL_assertion(dimension() == bbox.dimension());
T result = 1;
for(int i=0; i<dimension(); ++i) {
result *= std::min(max(i), bbox.max(i)) -
std::max(min(i), bbox.min(i));
result *= (std::min)(max(i), bbox.max(i)) -
(std::max)(min(i), bbox.min(i));
if (result <= 0) return 0;
}
return result;
Expand Down Expand Up @@ -141,7 +141,7 @@ class Bbox<0,T> : public Impl::Bbox<std::vector<T>, Bbox<0,T>>
Bbox(int d = 0 ) { init_values(d); this->init(d ); }
Bbox(int d, const T& range) { init_values(d); this->init(d, range); }
template <typename I>
Bbox(int d, I b, I e) { init_values(d); this->init(d, b, ); }
Bbox(int d, I b, I e) { init_values(d); this->init(d, b, e); }

protected:
void init_values(int d) {
Expand Down

0 comments on commit 8ef1f72

Please sign in to comment.