aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-11 22:24:09 -0500
committerbunnei <bunneidev@gmail.com>2018-01-11 22:24:09 -0500
commit86a8e324716e580e8564ee5c234ae7e324bf75a9 (patch)
tree00477f3aa1258b04db4c060d73e12b0d4b0ec68d /src/core
parente2db6b98fe9a1cd87257570d3736287f67094c97 (diff)
core: Fix recent GCC build breaks.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/frontend/framebuffer_layout.cpp2
-rw-r--r--src/core/hle/kernel/hle_ipc.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/core/frontend/framebuffer_layout.cpp b/src/core/frontend/framebuffer_layout.cpp
index 8551858d1a..18ec4d2ed5 100644
--- a/src/core/frontend/framebuffer_layout.cpp
+++ b/src/core/frontend/framebuffer_layout.cpp
@@ -2,6 +2,8 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <cmath>
+
#include "common/assert.h"
#include "core/frontend/framebuffer_layout.h"
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h
index 8c26285e56..42941d1515 100644
--- a/src/core/hle/kernel/hle_ipc.h
+++ b/src/core/hle/kernel/hle_ipc.h
@@ -154,13 +154,13 @@ public:
template<typename T>
SharedPtr<T> GetCopyObject(size_t index) {
ASSERT(index < copy_objects.size());
- return DynamicObjectCast(copy_objects[index]);
+ return DynamicObjectCast<T>(copy_objects[index]);
}
template<typename T>
SharedPtr<T> GetMoveObject(size_t index) {
ASSERT(index < move_objects.size());
- return DynamicObjectCast(move_objects[index]);
+ return DynamicObjectCast<T>(move_objects[index]);
}
void AddMoveObject(SharedPtr<Object> object) {