fixed ToString() for negative long longs (bug 1101426)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1105,7 +1105,10 @@ void *wxULongLongWx::asArray(void) const
|
||||
\
|
||||
while ( ll != 0 ) \
|
||||
{ \
|
||||
result.Prepend((wxChar)(_T('0') + (ll % 10).ToLong())); \
|
||||
long digit = (ll % 10).ToLong(); \
|
||||
if ( neg ) \
|
||||
digit = -digit; \
|
||||
result.Prepend((wxChar)(_T('0') + digit)); \
|
||||
ll /= 10; \
|
||||
} \
|
||||
\
|
||||
|
||||
Reference in New Issue
Block a user