diff options
author | David Robillard <d@drobilla.net> | 2012-01-16 22:23:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-16 22:23:42 +0000 |
commit | bcdb9db57e8f68ba90077a77a4152b72ca6da7ac (patch) | |
tree | 72e39dbd9f503827bbb74d311c22456eef918736 /src/zix/hash.c | |
parent | ec82c58f79e7555b4dfe9b832099aa8ee240b8ec (diff) | |
download | sord-bcdb9db57e8f68ba90077a77a4152b72ca6da7ac.tar.gz sord-bcdb9db57e8f68ba90077a77a4152b72ca6da7ac.tar.bz2 sord-bcdb9db57e8f68ba90077a77a4152b72ca6da7ac.zip |
Support compilation as C++ under MSVC++.
git-svn-id: http://svn.drobilla.net/sord/trunk@194 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/zix/hash.c')
-rw-r--r-- | src/zix/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |