From 8b1145a2bcd61ea404b1f611429ec619b5f426ed Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 16 Nov 2011 19:41:56 +0000 Subject: some quick t_float fixes svn path=/trunk/externals/OSCx/; revision=15776 --- src/dumpOSC.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dumpOSC.c') diff --git a/src/dumpOSC.c b/src/dumpOSC.c index b3ddf51..cf74299 100644 --- a/src/dumpOSC.c +++ b/src/dumpOSC.c @@ -810,7 +810,7 @@ static void dumpOSC_PrintTypeTaggedArgs(t_dumpOSC *x, void *v, int n) { case 'f': { int i = ntohl(*((int *) p)); - float *floatp = ((float *) (&i)); + t_float *floatp = ((t_float *) (&i)); #ifdef DEBUG post("float: %f", *floatp); #endif @@ -893,7 +893,7 @@ static void dumpOSC_PrintTypeTaggedArgs(t_dumpOSC *x, void *v, int n) { static void dumpOSC_PrintHeuristicallyTypeGuessedArgs(t_dumpOSC *x, void *v, int n, int skipComma) { int i, thisi; - float thisf; + t_float thisf; int *ints; char *chars; char *string, *nextString; @@ -911,7 +911,7 @@ static void dumpOSC_PrintHeuristicallyTypeGuessedArgs(t_dumpOSC *x, void *v, int string = &chars[i*4]; thisi = ntohl(ints[i]); /* Reinterpret the (potentially byte-reversed) thisi as a float */ - thisf = *(((float *) (&thisi))); + thisf = *(((t_float *) (&thisi))); if (thisi >= -1000 && thisi <= 1000000) { #ifdef DEBUG -- cgit v1.2.1