diff options
author | Hop311 <Hop3114@gmail.com> | 2023-12-28 17:43:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-28 17:43:43 +0100 |
commit | 0a425fbe05d6138b753c0e4a7c06f06695bde8af (patch) | |
tree | 8f67577b0101c06e2a7cc4d4c277d686d16d3d75 /src/openvic-simulation/types | |
parent | 56a865d7d0868b785eb6b9b723f0e52f65e6457d (diff) | |
parent | 12a47833bbe72d50271bde15c7579c1e801863c2 (diff) |
Merge pull request #110 from OpenVicProject/clock-refactor
Clock refactor + misc small fixes
Diffstat (limited to 'src/openvic-simulation/types')
-rw-r--r-- | src/openvic-simulation/types/Vector.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/types/Vector.hpp b/src/openvic-simulation/types/Vector.hpp index 89fe12f..5514cc3 100644 --- a/src/openvic-simulation/types/Vector.hpp +++ b/src/openvic-simulation/types/Vector.hpp @@ -20,7 +20,7 @@ namespace OpenVic { constexpr vec2_t& operator=(vec2_t&&) = default; template<typename S> - constexpr explicit operator vec2_t<S>() { + constexpr explicit operator vec2_t<S>() const { return { static_cast<S>(x), static_cast<S>(y) }; } |