SpellChecker: change to fix an overflow situation when spell checking.

Tue, 07 Jul 2020 17:20:23 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 07 Jul 2020 17:20:23 +0200
changeset 7648
d71792be46cc
parent 7647
94c5e1bbf09f
child 7649
fa1b4e735e00

SpellChecker: change to fix an overflow situation when spell checking.

eric6/QScintilla/SpellChecker.py file | annotate | diff | comparison | revisions
--- a/eric6/QScintilla/SpellChecker.py	Sun Jul 05 16:19:39 2020 +0200
+++ b/eric6/QScintilla/SpellChecker.py	Tue Jul 07 17:20:23 2020 +0200
@@ -11,7 +11,6 @@
 
 
 import os
-import sys
 
 from PyQt5.QtCore import QTimer, QObject
 
@@ -330,7 +329,7 @@
         
         if pos >= 0 and self.__checkRegion(pos):
             pos0 = pos
-            pos1 = sys.maxsize
+            pos1 = 0xffffffff
             if not self.editor.charAt(pos).isalnum():
                 line, index = self.editor.lineIndexFromPosition(pos)
                 self.editor.clearIndicator(

eric ide

mercurial