From a336f999c2c432b1fc6c6324a70bdaab02c0886e Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 2 Sep 2002 21:54:42 +0000 Subject: [PATCH] Added size_t cast to disambiguate array usage. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/x11/textctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11/textctrl.cpp b/src/x11/textctrl.cpp index d7ee081007..cb596659a8 100644 --- a/src/x11/textctrl.cpp +++ b/src/x11/textctrl.cpp @@ -1071,7 +1071,7 @@ void wxTextCtrl::SearchForBrackets() char bracket = ' '; if (m_cursorX > 0) - bracket = current[m_cursorX-1]; + bracket = current[(size_t) m_cursorX-1]; if (bracket == ')' || bracket == ']' || bracket == '}') {