From 36ea859b544765710fb932c728204c43b86da589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Sat, 28 Dec 2024 13:41:45 -0500 Subject: [PATCH] msvc: build fix --- include/avnd/binding/ossia/to_value.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/avnd/binding/ossia/to_value.hpp b/include/avnd/binding/ossia/to_value.hpp index f58c5f06..6955eb83 100644 --- a/include/avnd/binding/ossia/to_value.hpp +++ b/include/avnd/binding/ossia/to_value.hpp @@ -315,17 +315,17 @@ ossia::value to_ossia_value(const T& v) if constexpr(sz == 2) { auto [x, y] = v; - return ossia::vec2f{x, y}; + return ossia::vec2f{(float)x, (float)y}; } else if constexpr(sz == 3) { auto [x, y, z] = v; - return ossia::vec3f{x, y, z}; + return ossia::vec3f{(float)x, (float)y, (float)z}; } else if constexpr(sz == 4) { auto [x, y, z, w] = v; - return ossia::vec4f{x, y, z, w}; + return ossia::vec4f{(float)x, (float)y, (float)z, (float)w}; } else { @@ -347,17 +347,17 @@ ossia::value to_ossia_value(const T& v) if constexpr(N == 2) { auto [x, y] = v; - return ossia::vec2f{x, y}; + return ossia::vec2f{(float)x, (float)y}; } else if constexpr(N == 3) { auto [x, y, z] = v; - return ossia::vec3f{x, y, z}; + return ossia::vec3f{(float)x, (float)y, (float)z}; } else if constexpr(N == 4) { auto [x, y, z, w] = v; - return ossia::vec4f{x, y, z, w}; + return ossia::vec4f{(float)x, (float)y, (float)z, (float)w}; } else {