reset errno before testing it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-28 15:41:32 +00:00
parent 619dcb095e
commit 4ea4767ef9

View File

@@ -1686,6 +1686,8 @@ bool wxStringToIntType(const wxChar *start,
wxCHECK_MSG( val, false, _T("NULL output pointer") );
wxASSERT_MSG( !base || (base > 1 && base <= 36), _T("invalid base") );
errno = 0;
wxChar *end;
*val = (*func)(start, &end, base);