summaryrefslogtreecommitdiffstats
path: root/src/Vector3.h
diff options
context:
space:
mode:
authorWoazboat <f.kargl@posteo.de>2015-04-28 02:54:45 +0200
committerWoazboat <f.kargl@posteo.de>2015-05-08 15:12:33 +0200
commit689fe6041c746d608330700160d3a71fb182be0b (patch)
treee7107f94bf9069f4b0244d1868bbead9e6427526 /src/Vector3.h
parentTracer::signum function now returns int (diff)
downloadcuberite-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.h6
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