1
0
Fork 0
forked from suyu/suyu

Merge pull request #2490 from lioncash/float

ipc_helpers: Amend floating-point type in Pop<double> specialization
This commit is contained in:
Hexagon12 2019-05-19 14:50:30 +01:00 committed by GitHub
commit edf8c0a545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
} }