summaryrefslogtreecommitdiffstats
path: root/src/host.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-03 16:43:57 +0000
committerDavid Robillard <d@drobilla.net>2012-08-03 16:43:57 +0000
commit769d980f5ef68b84b8a4fe016eccced4d3b06b49 (patch)
treee697e4aa125a1fbfae858f5ae681721305cb8ae4 /src/host.c
parent6d856f2c3207fd5acd513d41f72830c29daf07f2 (diff)
downloadsuil-769d980f5ef68b84b8a4fe016eccced4d3b06b49.tar.gz
suil-769d980f5ef68b84b8a4fe016eccced4d3b06b49.tar.bz2
suil-769d980f5ef68b84b8a4fe016eccced4d3b06b49.zip
Fix compilation with MSVC.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@4609 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/host.c')
-rw-r--r--src/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host.c b/src/host.c
index 6a2bda8..264d044 100644
--- a/src/host.c
+++ b/src/host.c
@@ -23,7 +23,7 @@ suil_host_new(SuilPortWriteFunc write_func,
SuilPortSubscribeFunc subscribe_func,
SuilPortUnsubscribeFunc unsubscribe_func)
{
- SuilHost* host = malloc(sizeof(struct SuilHostImpl));
+ SuilHost* host = (SuilHost*)malloc(sizeof(struct SuilHostImpl));
host->write_func = write_func;
host->index_func = index_func;
host->subscribe_func = subscribe_func;