diff options
Diffstat (limited to 'externals/grill/pool/source')
-rw-r--r-- | externals/grill/pool/source/pool.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/externals/grill/pool/source/pool.cpp b/externals/grill/pool/source/pool.cpp index 23f5edbc..c2c0de6a 100644 --- a/externals/grill/pool/source/pool.cpp +++ b/externals/grill/pool/source/pool.cpp @@ -514,7 +514,14 @@ static char *ReadAtom(char *c,A *a) float fres; // first try float +#if 0 if(!issymbol && sscanf(tmp,"%f",&fres) == 1) { +#else + char *endp; + // see if it's a float - thanks to Frank Barknecht + fres = (float)strtod(tmp,&endp); + if(!issymbol && !*endp && endp != tmp) { +#endif if(a) { int ires = (int)fres; // try a cast if(fres == ires) |