From bcdb9db57e8f68ba90077a77a4152b72ca6da7ac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 16 Jan 2012 22:23:42 +0000 Subject: Support compilation as C++ under MSVC++. git-svn-id: http://svn.drobilla.net/sord/trunk@194 3d64ff67-21c5-427c-a301-fe4f08042e5a --- src/zix/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zix/hash.c') diff --git a/src/zix/hash.c b/src/zix/hash.c index c267757..f654e91 100644 --- a/src/zix/hash.c +++ b/src/zix/hash.c @@ -55,7 +55,7 @@ zix_hash_new(ZixHashFunc hash_func, hash->key_equal_func = key_equal_func; hash->count = 0; hash->n_buckets = &sizes[0]; - hash->buckets = malloc(*hash->n_buckets * sizeof(Entry*)); + hash->buckets = (Entry**)malloc(*hash->n_buckets * sizeof(Entry*)); memset(hash->buckets, 0, *hash->n_buckets * sizeof(Entry*)); return hash; -- cgit v1.2.1