diff options
author | Woazboat <f.kargl@posteo.de> | 2015-04-28 02:54:45 +0200 |
---|---|---|
committer | Woazboat <f.kargl@posteo.de> | 2015-04-28 02:54:45 +0200 |
commit | 2f264dba7168f0e3519b3b53148442001642e309 (patch) | |
tree | 33c41175d1a9c5949652db7a456445bcf4189821 /src | |
parent | Tracer signum function now returns int (diff) | |
download | cuberite-2f264dba7168f0e3519b3b53148442001642e309.tar cuberite-2f264dba7168f0e3519b3b53148442001642e309.tar.gz cuberite-2f264dba7168f0e3519b3b53148442001642e309.tar.bz2 cuberite-2f264dba7168f0e3519b3b53148442001642e309.tar.lz cuberite-2f264dba7168f0e3519b3b53148442001642e309.tar.xz cuberite-2f264dba7168f0e3519b3b53148442001642e309.tar.zst cuberite-2f264dba7168f0e3519b3b53148442001642e309.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 f1fb2d257..ede6cc851 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 |