Fix mac build maybe

This commit is contained in:
Corentin Jabot 2021-09-10 14:05:35 +02:00
parent 25394c4cdd
commit eb092224f4
2 changed files with 1 additions and 2 deletions

View File

@ -34,7 +34,6 @@ function(set_project_warnings)
set(CLANG_WARNINGS
-Wall
-Wextra # reasonable and standard
-Wshadow # warn the user if a variable declaration shadows one from a parent context
-Wnon-virtual-dtor # warn the user if a class with virtual functions has a non-virtual destructor. This helps
# catch hard to track down memory errors
-Wold-style-cast # warn for c-style casts

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 [ (id) handle backingScaleFactor];
return [ static_cast<id>(handle backingScaleFactor)];
}
}