Don't use C-cast

des/loadfont
Patricia Aas 2 years ago
parent eb092224f4
commit 8b6a0a5c86

@ -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];
}
}
Loading…
Cancel
Save