From c8b2a5d4887fe79e20b9329e110529a875eae5cd Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 25 Dec 2017 16:56:40 +0000 Subject: [PATCH] Fix compilation issue with indexing QByteArray by sptr_t --- qrenderdoc/Windows/PythonShell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrenderdoc/Windows/PythonShell.cpp b/qrenderdoc/Windows/PythonShell.cpp index dd7374381..459bcc98a 100644 --- a/qrenderdoc/Windows/PythonShell.cpp +++ b/qrenderdoc/Windows/PythonShell.cpp @@ -1017,8 +1017,8 @@ void PythonShell::startAutocomplete() sptr_t start; for(start = end; start >= 0; start--) { - if(QChar::fromLatin1(lineText[start]).isLetterOrNumber() || lineText[start] == '.' || - lineText[start] == '_') + char c = lineText[(int)start]; + if(QChar::fromLatin1(c).isLetterOrNumber() || c == '.' || c == '_') continue; start++;