mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
f4934c2b55
commit
f088bceae8
1 changed files with 1 additions and 1 deletions
|
@ -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)];
|
||||
|
|
Loading…
Reference in a new issue