mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
dd27d2ede3
commit
3cb9f2549b
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@
|
||||||
/* FIXME: implement this better */
|
/* FIXME: implement this better */
|
||||||
const char *str;
|
const char *str;
|
||||||
|
|
||||||
str = [string cString];
|
str = [string UTF8String];
|
||||||
if (strchr(str, '.') >= 0 || strchr(str, 'e') >= 0
|
if (strchr(str, '.') >= 0 || strchr(str, 'e') >= 0
|
||||||
|| strchr(str, 'E') >= 0)
|
|| strchr(str, 'E') >= 0)
|
||||||
return [NSNumber numberWithDouble: atof(str)];
|
return [NSNumber numberWithDouble: atof(str)];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue