summaryrefslogtreecommitdiffstats
path: root/src/hash.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-01-31 22:28:18 +0000
committerDavid Robillard <d@drobilla.net>2012-01-31 22:28:18 +0000
commitfe3491419b084c2d41ad9f29274325e6c0043856 (patch)
treee50dcaea6879029f2a80f3b8884a36620ecea55d /src/hash.c
parent86826ae6733119d462be9f3642161db895756643 (diff)
downloadzix-fe3491419b084c2d41ad9f29274325e6c0043856.tar.gz
zix-fe3491419b084c2d41ad9f29274325e6c0043856.tar.bz2
zix-fe3491419b084c2d41ad9f29274325e6c0043856.zip
Windows/Visual C++ portability.
git-svn-id: http://svn.drobilla.net/zix/trunk@51 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.c b/src/hash.c
index c267757..f654e91 100644
--- a/src/hash.c
+++ b/src/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;