Skip to content

Commit

Permalink
msvc: build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Dec 28, 2024
1 parent 3c1299d commit 36ea859
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/avnd/binding/ossia/to_value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand Down

0 comments on commit 36ea859

Please sign in to comment.