Fix compilation issue with indexing QByteArray by sptr_t

This commit is contained in:
baldurk
2017-12-25 16:56:40 +00:00
parent 09db13ff3c
commit c8b2a5d488
+2 -2
View File
@@ -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++;