mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-27 09:58:08 +01:00
- _wtoi correction
This commit is contained in:
parent
603a75a98c
commit
ec3a91e444
1 changed files with 1 additions and 7 deletions
|
@ -33,13 +33,7 @@
|
||||||
|
|
||||||
int _wtoi(const wchar_t *iWStr)
|
int _wtoi(const wchar_t *iWStr)
|
||||||
{
|
{
|
||||||
int res = 0;
|
return wcstol(iWStr,NULL,10);
|
||||||
while (iswdigit(iWStr[0]))
|
|
||||||
{
|
|
||||||
res = 10 * res + (iWStr[0] - '0');
|
|
||||||
iWStr++;
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue