diff options
author | Woazboat <f.kargl@posteo.de> | 2015-04-28 02:54:45 +0200 |
---|---|---|
committer | Woazboat <f.kargl@posteo.de> | 2015-05-08 15:12:33 +0200 |
commit | 689fe6041c746d608330700160d3a71fb182be0b (patch) | |
tree | e7107f94bf9069f4b0244d1868bbead9e6427526 /src/Vector3.h | |
parent | Tracer::signum function now returns int (diff) | |
download | cuberite-689fe6041c746d608330700160d3a71fb182be0b.tar cuberite-689fe6041c746d608330700160d3a71fb182be0b.tar.gz cuberite-689fe6041c746d608330700160d3a71fb182be0b.tar.bz2 cuberite-689fe6041c746d608330700160d3a71fb182be0b.tar.lz cuberite-689fe6041c746d608330700160d3a71fb182be0b.tar.xz cuberite-689fe6041c746d608330700160d3a71fb182be0b.tar.zst cuberite-689fe6041c746d608330700160d3a71fb182be0b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Vector3.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Vector3.h b/src/Vector3.h index a42003aae..6164721da 100644 --- a/src/Vector3.h +++ b/src/Vector3.h @@ -126,11 +126,7 @@ public: { // Perform a bitwise comparison of the contents - we want to know whether this object is exactly equal // To perform EPS-based comparison, use the EqualsEps() function - return ( - (memcmp(&x, &a_Rhs.x, sizeof(x)) == 0) && - (memcmp(&y, &a_Rhs.y, sizeof(y)) == 0) && - (memcmp(&z, &a_Rhs.z, sizeof(z)) == 0) - ); + return !((x != a_Rhs.x) || (y != a_Rhs.y) || (z != a_Rhs.z)); } inline bool EqualsEps(const Vector3<T> & a_Rhs, T a_Eps) const |