[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] eliot/game encoding.cpp
From: |
eliot-dev |
Subject: |
[Eliot-dev] eliot/game encoding.cpp |
Date: |
Sun, 05 Nov 2006 13:30:54 +0000 |
CVSROOT: /cvsroot/eliot
Module name: eliot
Changes by: Antoine Fraboulet <afrab> 06/11/05 13:30:54
Modified files:
game : encoding.cpp
Log message:
- _wtoi correction
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/game/encoding.cpp?cvsroot=eliot&r1=1.2&r2=1.3
Patches:
Index: encoding.cpp
===================================================================
RCS file: /cvsroot/eliot/eliot/game/encoding.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- encoding.cpp 22 Jan 2006 12:23:53 -0000 1.2
+++ encoding.cpp 5 Nov 2006 13:30:54 -0000 1.3
@@ -33,13 +33,7 @@
int _wtoi(const wchar_t *iWStr)
{
- int res = 0;
- while (iswdigit(iWStr[0]))
- {
- res = 10 * res + (iWStr[0] - '0');
- iWStr++;
- }
- return res;
+ return wcstol(iWStr,NULL,10);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Eliot-dev] eliot/game encoding.cpp,
eliot-dev <=