瀏覽代碼

ipc_helpers: Amend floating-point type in Pop<double> specialization

Currently, this overload isn't used, so this wasn't actually hit in any
code, only the float overload is used.
Lioncash 7 年之前
父節點
當前提交
242273788a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/hle/ipc_helpers.h

+ 1 - 1
src/core/hle/ipc_helpers.h

@@ -438,7 +438,7 @@ inline float RequestParser::Pop() {
 template <>
 template <>
 inline double RequestParser::Pop() {
 inline double RequestParser::Pop() {
     const u64 value = Pop<u64>();
     const u64 value = Pop<u64>();
-    float real;
+    double real;
     std::memcpy(&real, &value, sizeof(real));
     std::memcpy(&real, &value, sizeof(real));
     return real;
     return real;
 }
 }