]> git.saurik.com Git - wxWidgets.git/commitdiff
made operator definition dependent on sizeof(int), not __UNIX__
authorKarsten Ballüder <ballueder@usa.net>
Fri, 27 Nov 1998 11:55:54 +0000 (11:55 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Fri, 27 Nov 1998 11:55:54 +0000 (11:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/string.h

index 785ab5892ac7abe6768e0557da200071b861fb57..e9687a47489ef84e8c037bbe7e4651be290738ad 100644 (file)
@@ -303,9 +303,8 @@ public:
     char& Last()
       { wxASSERT( !IsEmpty() ); CopyBeforeWrite(); return m_pchData[Len()-1]; }
 
-    // Alternatively, we could uncomment one of them for 64bit platforms
-    // by using #if SIZEOF_INT > 32
-#ifdef __UNIX__
+    // on 64bit systems, this gives overload problems:
+#if SIZEOF_INT <= 32
     /// operator version of GetChar
     char  operator[](size_t n) const
       { ASSERT_VALID_INDEX( n ); return m_pchData[n]; }