From f3c2bfb093aa5e85a51f10b5f9c76e349c962bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 14 May 2020 17:32:40 +0200 Subject: [PATCH] Animation: why not just cast the thing? The reinterpret is kinda dangerous, and causes strict aliasing warnings. --- src/Magnum/Animation/Track.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Animation/Track.h b/src/Magnum/Animation/Track.h index 67c267de3..8e04bc9d8 100644 --- a/src/Magnum/Animation/Track.h +++ b/src/Magnum/Animation/Track.h @@ -696,7 +696,7 @@ template values() const { - return reinterpret_cast&>(TrackViewStorage::_values); + return Containers::arrayCast(TrackViewStorage::_values); } /**