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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user