[PD] Bug in pool?

Frank Barknecht fbar at footils.org
Tue Apr 19 15:35:58 CEST 2005


Hallo,
Frank Barknecht hat gesagt: // Frank Barknecht wrote:
> I was researching the problem a bit in the meantime, and maybe "strtof" can
> help. This is what I have so far: 

And I almost got it!

>     // save character and set delimiter
> 
>     float fres;
>     char *endp;
>     
>     // see if it's a float
>     fres = strtof(tmp,&endp);
>     
>     if (endp or (endp == tmp)) { 

Above line should be:
      if (*endp or (endp == tmp)) { 

After this change, now in my short tests floats and symbols seem to be
correctly indentified on load. Lists also still work.

Ciao
-- 
 Frank Barknecht                               _ ______footils.org__
             
          _ __latest track: "scans" _ http://footils.org/cms/show/41




More information about the Pd-list mailing list