made operator definition dependent on sizeof(int), not __UNIX__
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -303,9 +303,8 @@ public:
|
|||||||
char& Last()
|
char& Last()
|
||||||
{ wxASSERT( !IsEmpty() ); CopyBeforeWrite(); return m_pchData[Len()-1]; }
|
{ wxASSERT( !IsEmpty() ); CopyBeforeWrite(); return m_pchData[Len()-1]; }
|
||||||
|
|
||||||
// Alternatively, we could uncomment one of them for 64bit platforms
|
// on 64bit systems, this gives overload problems:
|
||||||
// by using #if SIZEOF_INT > 32
|
#if SIZEOF_INT <= 32
|
||||||
#ifdef __UNIX__
|
|
||||||
/// operator version of GetChar
|
/// operator version of GetChar
|
||||||
char operator[](size_t n) const
|
char operator[](size_t n) const
|
||||||
{ ASSERT_VALID_INDEX( n ); return m_pchData[n]; }
|
{ ASSERT_VALID_INDEX( n ); return m_pchData[n]; }
|
||||||
|
Reference in New Issue
Block a user