From: Karsten Ballüder Date: Fri, 27 Nov 1998 14:19:39 +0000 (+0000) Subject: handle sizeof(int) correctly X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1805077dc2d42e2b04da9895316708e8f4eb9f63 handle sizeof(int) correctly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/string.h b/include/wx/string.h index e9687a4748..c3ce0840a2 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -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]; }