From 1805077dc2d42e2b04da9895316708e8f4eb9f63 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Fri, 27 Nov 1998 14:19:39 +0000 Subject: [PATCH] handle sizeof(int) correctly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } -- 2.50.0