diff options
-rw-r--r-- | OSC/dumpOSC.c | 6 |
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;
|