summaryrefslogtreecommitdiffstats
path: root/src/sorted_array.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/sorted_array.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/sorted_array.c')
-rw-r--r--src/sorted_array.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sorted_array.c b/src/sorted_array.c
index ae08946..f8e785d 100644
--- a/src/sorted_array.c
+++ b/src/sorted_array.c
@@ -15,7 +15,6 @@
*/
#include <assert.h>
-#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@@ -51,10 +50,12 @@ zix_sorted_array_print(ZixSortedArray* a)
ZIX_API
ZixSortedArray*
-zix_sorted_array_new(bool allow_duplicates, ZixComparator cmp, void* cmp_data,
- size_t elem_size)
+zix_sorted_array_new(bool allow_duplicates,
+ ZixComparator cmp,
+ void* cmp_data,
+ size_t elem_size)
{
- ZixSortedArray* a = malloc(sizeof(ZixSortedArray));
+ ZixSortedArray* a = (ZixSortedArray*)malloc(sizeof(ZixSortedArray));
a->array = NULL;
a->cmp = cmp;
a->cmp_data = cmp_data;