Fix mac build maybe
This commit is contained in:
parent
25394c4cdd
commit
eb092224f4
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)];
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue