diff options
author | madmaxoft <github@xoft.cz> | 2014-04-05 22:34:05 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-04-05 22:34:05 +0200 |
commit | 143a5e61fc8e704f3df776d089217f031bc47779 (patch) | |
tree | a5edd697f377f44aa469b2d81a19b9cd90187d9b /src/Endianness.h | |
parent | Fixed double projectile spawning. (diff) | |
download | cuberite-143a5e61fc8e704f3df776d089217f031bc47779.tar cuberite-143a5e61fc8e704f3df776d089217f031bc47779.tar.gz cuberite-143a5e61fc8e704f3df776d089217f031bc47779.tar.bz2 cuberite-143a5e61fc8e704f3df776d089217f031bc47779.tar.lz cuberite-143a5e61fc8e704f3df776d089217f031bc47779.tar.xz cuberite-143a5e61fc8e704f3df776d089217f031bc47779.tar.zst cuberite-143a5e61fc8e704f3df776d089217f031bc47779.zip |
Diffstat (limited to 'src/Endianness.h')
-rw-r--r-- | src/Endianness.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Endianness.h b/src/Endianness.h index 6a2593077..78f9a5d99 100644 --- a/src/Endianness.h +++ b/src/Endianness.h @@ -49,7 +49,7 @@ inline double NetworkToHostDouble8(const void * a_Value) inline Int64 NetworkToHostLong8(const void * a_Value) { UInt64 buf; - memcpy(&buf, &a_Value, 8); + memcpy(&buf, a_Value, 8); buf = ntohll(buf); return *reinterpret_cast<Int64 *>(&buf); } @@ -62,7 +62,7 @@ inline float NetworkToHostFloat4(const void * a_Value) { UInt32 buf; float x; - memcpy(&buf, &a_Value, 4); + memcpy(&buf, a_Value, 4); buf = ntohl(buf); memcpy(&x, &buf, sizeof(float)); return x; |