From fe3491419b084c2d41ad9f29274325e6c0043856 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 31 Jan 2012 22:28:18 +0000 Subject: Windows/Visual C++ portability. git-svn-id: http://svn.drobilla.net/zix/trunk@51 df6676b4-ccc9-40e5-b5d6-7c4628a128e3 --- src/sorted_array.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/sorted_array.c') 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 -#include #include #include #include @@ -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; -- cgit v1.2.1