aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtyom Palvelev <artyompp@google.com>2023-09-12 14:25:12 +0100
committerArtyom Palvelev <artyompp@google.com>2023-09-12 14:25:12 +0100
commit4961b2107e3e92fdf6229f92a1aaf19959d19d9d (patch)
tree5895a1db2626c2b113a03efbd1aed287be31d51a
parentcb0cf2c186b9a70a15057bdf8d998eab38f74fa1 (diff)
downloadgamesdk-4961b2107e3e92fdf6229f92a1aaf19959d19d9d.tar.gz
fix wrong return type in MemoryAdvice
This is a minor fix of the GetAvailableMemory() implementation. Bug: N/A Test: N/A Change-Id: I31602c97fb1b8ef56d8f724ca2bd58507b10d35e
-rw-r--r--games-memory-advice/core/memory_advice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/games-memory-advice/core/memory_advice.cpp b/games-memory-advice/core/memory_advice.cpp
index e691100b..a3acbcdd 100644
--- a/games-memory-advice/core/memory_advice.cpp
+++ b/games-memory-advice/core/memory_advice.cpp
@@ -72,7 +72,7 @@ MemoryAdvice_MemoryState GetMemoryState() {
int64_t GetAvailableMemory() {
if (s_impl == nullptr)
- return static_cast<float>(MEMORYADVICE_ERROR_NOT_INITIALIZED);
+ return static_cast<int64_t>(MEMORYADVICE_ERROR_NOT_INITIALIZED);
return s_impl->GetAvailableMemory();
}