aboutsummaryrefslogtreecommitdiff
path: root/OSC
diff options
context:
space:
mode:
authorFrank Barknecht <fbar@users.sourceforge.net>2003-12-19 01:31:48 +0000
committerFrank Barknecht <fbar@users.sourceforge.net>2003-12-19 01:31:48 +0000
commitbc1b810a9312245783d9faa75e56c79170f596a3 (patch)
treefd8e2f89f9133665615f413b5de5d07e5f6f707a /OSC
parent54300fa5ab41ba528cc277620efce2d1bcfb384e (diff)
Added Martin Peach's bugfix for sending negative integers.
svn path=/trunk/externals/OSCx/; revision=1227
Diffstat (limited to 'OSC')
-rw-r--r--OSC/dumpOSC.c6
1 files changed, 5 insertions, 1 deletions
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;