yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

core: Fix recent GCC build breaks.

This commit is contained in:
bunnei 2018-01-11 22:24:09 -05:00
parent 97ef21e166
commit 039fc7f985
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@
// Licensed under GPLv2 or any later version // Licensed under GPLv2 or any later version
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <cmath>
#include "common/assert.h" #include "common/assert.h"
#include "core/frontend/framebuffer_layout.h" #include "core/frontend/framebuffer_layout.h"

View File

@ -154,13 +154,13 @@ public:
template<typename T> template<typename T>
SharedPtr<T> GetCopyObject(size_t index) { SharedPtr<T> GetCopyObject(size_t index) {
ASSERT(index < copy_objects.size()); ASSERT(index < copy_objects.size());
return DynamicObjectCast(copy_objects[index]); return DynamicObjectCast<T>(copy_objects[index]);
} }
template<typename T> template<typename T>
SharedPtr<T> GetMoveObject(size_t index) { SharedPtr<T> GetMoveObject(size_t index) {
ASSERT(index < move_objects.size()); ASSERT(index < move_objects.size());
return DynamicObjectCast(move_objects[index]); return DynamicObjectCast<T>(move_objects[index]);
} }
void AddMoveObject(SharedPtr<Object> object) { void AddMoveObject(SharedPtr<Object> object) {