aboutsummaryrefslogtreecommitdiff
path: root/src/dumpOSC.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-11-16 19:41:56 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-11-16 19:41:56 +0000
commit8b1145a2bcd61ea404b1f611429ec619b5f426ed (patch)
tree6bd10a04ea19f12732c1d5518b7623a7b7ab5d14 /src/dumpOSC.c
parentdd0a7b6f8c429ba388dd9aef88ce91d1bcb1b23e (diff)
some quick t_float fixes
svn path=/trunk/externals/OSCx/; revision=15776
Diffstat (limited to 'src/dumpOSC.c')
-rw-r--r--src/dumpOSC.c6
1 files changed, 3 insertions, 3 deletions
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