]> git.saurik.com Git - wxWidgets.git/commitdiff
handle sizeof(int) correctly
authorKarsten Ballüder <ballueder@usa.net>
Fri, 27 Nov 1998 14:19:39 +0000 (14:19 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Fri, 27 Nov 1998 14:19:39 +0000 (14:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/string.h

index e9687a47489ef84e8c037bbe7e4651be290738ad..c3ce0840a23c6b6781b1ba973bde29940ed1cdaa 100644 (file)
@@ -304,7 +304,7 @@ public:
       { wxASSERT( !IsEmpty() ); CopyBeforeWrite(); return m_pchData[Len()-1]; }
 
     // on 64bit systems, this gives overload problems:
-#if SIZEOF_INT <= 32
+#if SIZEOF_INT <= 4
     /// operator version of GetChar
     char  operator[](size_t n) const
       { ASSERT_VALID_INDEX( n ); return m_pchData[n]; }