From 0690ab246e27c6d9080148cca9188dbe1aef0724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Sun, 23 Oct 2005 19:50:45 +0000 Subject: ran with "-Wall" and fixed naughtinesses shut up warnings and errors on vc7 svn path=/trunk/externals/iem/iemmatrix/; revision=3756 --- src/mtx_index.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mtx_index.c') diff --git a/src/mtx_index.c b/src/mtx_index.c index 1bf65ae..a9eda02 100644 --- a/src/mtx_index.c +++ b/src/mtx_index.c @@ -53,7 +53,11 @@ static void *newMTXIndex (t_symbol *s, int argc, t_atom *argv) fill_atom = *argv; } if (atom_getsymbol(&fill_atom) == gensym("nan")) +#ifdef __WIN32__ + mtx_index_obj->fill_value = 0.0f; +#else mtx_index_obj->fill_value = 0.0f/0.0f; +#endif else mtx_index_obj->fill_value = atom_getfloat(&fill_atom); @@ -159,7 +163,6 @@ static void mTXIndexMatrix (MTXindex *mtx_index_obj, t_symbol *s, int list_size = argc - 2; t_atom *list_in = argv; t_atom *list_out = mtx_index_obj->list_out; - int count; int index_rows = mtx_index_obj->index_rows; int index_columns = mtx_index_obj->index_columns; int *index = mtx_index_obj->index_in; -- cgit v1.2.1