From c57fe715b2e4063deb38afb4a4551dab68732f5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 10 May 2007 17:20:17 +0000 Subject: [PATCH] fixed wxStrto(u)ll to return correct value in endptr git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wxcrt.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/wxcrt.cpp b/src/common/wxcrt.cpp index eb8dcfd14e..17c7665992 100644 --- a/src/common/wxcrt.cpp +++ b/src/common/wxcrt.cpp @@ -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; -- 2.47.2