diff options
| author | 2019-05-18 22:05:29 -0400 | |
|---|---|---|
| committer | 2019-05-18 22:05:33 -0400 | |
| commit | 242273788a31044c554bbe060bbd5f163095816b (patch) | |
| tree | a46e93fb8d49f888b9d4d4e04d07721a9717530e /src/core/hle | |
| parent | Merge pull request #2457 from lioncash/about (diff) | |
| download | yuzu-242273788a31044c554bbe060bbd5f163095816b.tar.gz yuzu-242273788a31044c554bbe060bbd5f163095816b.tar.xz yuzu-242273788a31044c554bbe060bbd5f163095816b.zip | |
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.
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/ipc_helpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index ac0e1d796..5bb139483 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h | |||
| @@ -438,7 +438,7 @@ inline float RequestParser::Pop() { | |||
| 438 | template <> | 438 | template <> |
| 439 | inline double RequestParser::Pop() { | 439 | inline double RequestParser::Pop() { |
| 440 | const u64 value = Pop<u64>(); | 440 | const u64 value = Pop<u64>(); |
| 441 | float real; | 441 | double real; |
| 442 | std::memcpy(&real, &value, sizeof(real)); | 442 | std::memcpy(&real, &value, sizeof(real)); |
| 443 | return real; | 443 | return real; |
| 444 | } | 444 | } |