[PD] floats getting forced into int

Frank Barknecht fbar at footils.org
Wed Feb 14 17:53:47 CET 2007


Hallo,
Frank Barknecht hat gesagt: // Frank Barknecht wrote:

> Maybe you can be bothered to make a tiny modification to sendOSC.c as
> in attached patch 

%&$&§#§$§#!#?, forgot the patch. Why does this always happen at least
once every two days?

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
-------------- next part --------------
--- sendOSC.c	2007-02-08 16:38:09.000000000 +0100
+++ sendOSC-no-conversion.c	2007-02-14 17:13:17.000000000 +0100
@@ -411,17 +411,8 @@
 
     case A_FLOAT:
       f = atom_getfloat(a);
-	  i = atom_getint(a);
-	  if (f == (t_float)i)
-	  { // assume that if the int and float are the same, it's an int
-            returnVal.type = INT_osc;
-        returnVal.datum.i = i;
-        }
-	  else
-	  {
                 returnVal.type = FLOAT_osc;
         returnVal.datum.f = f;
-        }
 	  return returnVal;
     case A_SYMBOL:
 	  s = *atom_getsymbol(a);


More information about the Pd-list mailing list