diff options
| author | 2019-05-19 14:50:30 +0100 | |
|---|---|---|
| committer | 2019-05-19 14:50:30 +0100 | |
| commit | edf8c0a5452ffa4b8eb7447c899b05ec4812bbbb (patch) | |
| tree | c338af44cf5dbbfe08550a38141f1433e9a29d43 /src | |
| parent | Merge pull request #2492 from lioncash/debugger (diff) | |
| parent | ipc_helpers: Amend floating-point type in Pop<double> specialization (diff) | |
| download | yuzu-edf8c0a5452ffa4b8eb7447c899b05ec4812bbbb.tar.gz yuzu-edf8c0a5452ffa4b8eb7447c899b05ec4812bbbb.tar.xz yuzu-edf8c0a5452ffa4b8eb7447c899b05ec4812bbbb.zip | |
Merge pull request #2490 from lioncash/float
ipc_helpers: Amend floating-point type in Pop<double> specialization
Diffstat (limited to 'src')
| -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 | } |