Don't use C-cast

This commit is contained in:
Patricia Aas 2021-09-10 14:32:46 +02:00
parent eb092224f4
commit 8b6a0a5c86

View file

@ -9,7 +9,7 @@ It is not a C++ file and is not part of this course!
namespace pacman {
double scaling_factor_for_window(sf::WindowHandle handle) {
return [ static_cast<id>(handle backingScaleFactor)];
return [ reinterpret_cast<id>(handle) backingScaleFactor];
}
}