From bc1b810a9312245783d9faa75e56c79170f596a3 Mon Sep 17 00:00:00 2001 From: Frank Barknecht Date: Fri, 19 Dec 2003 01:31:48 +0000 Subject: Added Martin Peach's bugfix for sending negative integers. svn path=/trunk/externals/OSCx/; revision=1227 --- OSC/dumpOSC.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OSC/dumpOSC.c b/OSC/dumpOSC.c index d74bddc..95f1149 100644 --- a/OSC/dumpOSC.c +++ b/OSC/dumpOSC.c @@ -740,7 +740,11 @@ static void dumpOSC_PrintTypeTaggedArgs(t_dumpOSC *x, void *v, int n) { #ifdef DEBUG //post("integer: %d", ntohl(*((int *) p))); #endif - SETFLOAT(mya+myargc,ntohl(*((int *) p))); + /* Martin Peach fix for negative floats: + * was: SETFLOAT(mya+myargc,ntohl(*((int *) p))); + * now is: + */ + SETFLOAT(mya+myargc,(signed)ntohl(*((int *) p))); myargc++; p += 4; -- cgit v1.2.1