From 066f574b9404c56bb988603ec0b4a6b804a4d91d Mon Sep 17 00:00:00 2001 From: namark <namark@disroot.org> Date: Mon, 20 Sep 2021 19:57:38 +0400 Subject: [PATCH] Fixed vector mix indices array type. --- source/simple/geom/vector.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/simple/geom/vector.hpp b/source/simple/geom/vector.hpp index 8f2632a..31f1e57 100644 --- a/source/simple/geom/vector.hpp +++ b/source/simple/geom/vector.hpp @@ -371,7 +371,7 @@ namespace simple::geom template <size_t N, typename Mixed = vector<Coordinate, N>> [[nodiscard]] - constexpr Mixed mix(const support::array<Coordinate,N>& indices) const + constexpr Mixed mix(const support::array<size_t,N>& indices) const { Mixed result{}; size_t index{}; @@ -387,7 +387,7 @@ namespace simple::geom template <size_t N, typename Mixed = vector<Coordinate, N>> [[nodiscard]] - constexpr Mixed mix(const support::array<Coordinate,N>& indices, const Coordinate& default_value) const + constexpr Mixed mix(const support::array<size_t,N>& indices, const Coordinate& default_value) const { Mixed result{}; size_t index{}; -- GitLab