From dc2fd29b378aae1597fdc1954da0e01f75816bd4 Mon Sep 17 00:00:00 2001 From: musil Date: Tue, 7 Nov 2006 17:11:40 +0000 Subject: makefile_win makefile_linux update we dont need #if MSW_VER chanched float to t_float svn path=/trunk/externals/iemlib/; revision=6221 --- src/iemlib2/wrap.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/iemlib2/wrap.c') diff --git a/src/iemlib2/wrap.c b/src/iemlib2/wrap.c index 6862639..7e701b8 100644 --- a/src/iemlib2/wrap.c +++ b/src/iemlib2/wrap.c @@ -3,10 +3,6 @@ iemlib2 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2005 */ -#ifdef _MSC_VER -#pragma warning( disable : 4244 ) -#pragma warning( disable : 4305 ) -#endif #include "m_pd.h" #include "iemlib.h" @@ -20,7 +16,7 @@ iemlib2 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2005 typedef struct _wrap { t_object x_obj; - float x_f; + t_float x_f; } t_wrap; static t_class *wrap_class; @@ -30,14 +26,14 @@ static void wrap_bang(t_wrap *x) outlet_float(x->x_obj.ob_outlet, x->x_f); } -static void wrap_float(t_wrap *x, t_float f) +static void wrap_float(t_wrap *x, t_floatarg f) { int i=(int)f; if(f > 0.0) - x->x_f = f - (float)i; + x->x_f = f - (t_float)i; else - x->x_f = f - (float)(i - 1); + x->x_f = f - (t_float)(i - 1); wrap_bang(x); } -- cgit v1.2.1