summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-05-31 14:47:07 +0000
committerDavid Robillard <d@drobilla.net>2013-05-31 14:47:07 +0000
commit29eb3c251811e4f34b95312c75e9c6510df5a6c3 (patch)
tree7f0fccabdb2785f0b5efa7182065f36251b53c8c /ingen
parent567da0cb52869c6b0810148162e38b228e1425d6 (diff)
downloadingen-29eb3c251811e4f34b95312c75e9c6510df5a6c3.tar.gz
ingen-29eb3c251811e4f34b95312c75e9c6510df5a6c3.tar.bz2
ingen-29eb3c251811e4f34b95312c75e9c6510df5a6c3.zip
Fix Atom on 32-bit platforms (patch from Robin Gareus).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5120 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ingen')
-rw-r--r--ingen/Atom.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ingen/Atom.hpp b/ingen/Atom.hpp
index 8e652e5e..3d05d1ac 100644
--- a/ingen/Atom.hpp
+++ b/ingen/Atom.hpp
@@ -71,7 +71,7 @@ public:
_body.ptr = (LV2_Atom*)malloc(sizeof(LV2_Atom) + _atom.size);
memcpy(_body.ptr, copy._body.ptr, sizeof(LV2_Atom) + _atom.size);
} else {
- memcpy(&_body.val, &copy._body.val, sizeof(LV2_Atom));
+ memcpy(&_body.val, &copy._body.val, sizeof(_body.val));
}
}
@@ -85,7 +85,7 @@ public:
_body.ptr = (LV2_Atom*)malloc(sizeof(LV2_Atom) + _atom.size);
memcpy(_body.ptr, other._body.ptr, sizeof(LV2_Atom) + _atom.size);
} else {
- memcpy(&_body.val, &other._body.val, sizeof(LV2_Atom));
+ memcpy(&_body.val, &other._body.val, sizeof(_body.val));
}
return *this;
}