]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxStrto(u)ll to return correct value in endptr
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 10 May 2007 17:20:17 +0000 (17:20 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 10 May 2007 17:20:17 +0000 (17:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wxcrt.cpp

index eb8dcfd14e6a88e2e898058a232fd46f60f3543a..17c766599218d1babebf6190249540a932affe0d 100644 (file)
@@ -1458,8 +1458,7 @@ static wxULongLong_t wxStrtoullBase(const wxChar* nptr, wxChar** endptr, int bas
 
     if ( endptr )
     {
-        const wxChar& endref = *i;
-        *endptr = &(wxChar&)endref;
+        *endptr = (wxChar*)(nptr + (i - wxstr.begin()));
     }
 
     return sum;