replace deprecated method

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29777 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-02-26 09:05:57 +00:00
parent f4934c2b55
commit f088bceae8

View file

@ -39,7 +39,7 @@
/* FIXME: implement this better */
const char *str;
str = [string cString];
str = [string UTF8String];
if (strchr(str, '.') >= 0 || strchr(str, 'e') >= 0
|| strchr(str, 'E') >= 0)
return [NSNumber numberWithDouble: atof(str)];