- _wtoi correction

This commit is contained in:
Antoine Fraboulet 2006-11-05 13:30:54 +00:00
parent 603a75a98c
commit ec3a91e444

View file

@ -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;
} }