summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-31 18:05:01 +0000
committerDavid Robillard <d@drobilla.net>2012-08-31 18:05:01 +0000
commit79af594714dcb1756274067fe632f0ba3098450e (patch)
tree4b521d21f600a72d449e13de71170de57e92256f
parentcd6209bcdd686b630bece9dc7b73e24584dbf769 (diff)
downloadraul-79af594714dcb1756274067fe632f0ba3098450e.tar.gz
raul-79af594714dcb1756274067fe632f0ba3098450e.tar.bz2
raul-79af594714dcb1756274067fe632f0ba3098450e.zip
Skip actual data comparison when checking equality of atoms with different sizes.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4762 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--raul/Atom.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/raul/Atom.hpp b/raul/Atom.hpp
index 6b2ae92..92d0d07 100644
--- a/raul/Atom.hpp
+++ b/raul/Atom.hpp
@@ -71,7 +71,7 @@ public:
}
inline bool operator==(const Atom& other) const {
- if (_type == other.type()) {
+ if (_type == other.type() && _size == other.size()) {
if (is_reference()) {
return !memcmp(_val._blob, other._val._blob, _size);
} else {