Browse Source
Merge pull request #2490 from lioncash/float
ipc_helpers: Amend floating-point type in Pop<double> specialization
pull/15/merge
Hexagon12
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/core/hle/ipc_helpers.h
|
|
|
@ -438,7 +438,7 @@ inline float RequestParser::Pop() { |
|
|
|
template <> |
|
|
|
inline double RequestParser::Pop() { |
|
|
|
const u64 value = Pop<u64>(); |
|
|
|
float real; |
|
|
|
double real; |
|
|
|
std::memcpy(&real, &value, sizeof(real)); |
|
|
|
return real; |
|
|
|
} |
|
|
|
|