From 779e087cf93a10f4da5265e3f217e6ed2eaf5bf9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 May 2012 02:08:19 +0000 Subject: Fix compilation when posix_memalign is unavailable. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4403 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/Buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp index f8a9f499..4bc39c12 100644 --- a/src/server/Buffer.cpp +++ b/src/server/Buffer.cpp @@ -52,7 +52,7 @@ Buffer::Buffer(BufferFactory& bufs, LV2_URID type, uint32_t capacity) #ifdef HAVE_POSIX_MEMALIGN int ret = posix_memalign((void**)&_atom, 16, capacity); #else - _atom = (LV2_Atom_Sequence*)malloc(capacity); + _atom = (LV2_Atom*)malloc(capacity); int ret = (_atom != NULL) ? 0 : -1; #endif -- cgit v1.2.1