diff options
Diffstat (limited to 'lexers/LexAsm.cxx')
| -rw-r--r-- | lexers/LexAsm.cxx | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/lexers/LexAsm.cxx b/lexers/LexAsm.cxx index ded7a4348..0b8e438a8 100644 --- a/lexers/LexAsm.cxx +++ b/lexers/LexAsm.cxx @@ -228,7 +228,7 @@ Sci_Position SCI_METHOD LexerAsm::WordListSet(int n, const char *wl) {  		wordListN = &directives4foldend;  		break;  	} -	int firstModification = -1; +	Sci_Position firstModification = -1;  	if (wordListN) {  		WordList wlNew;  		wlNew.Set(wl); @@ -378,9 +378,9 @@ void SCI_METHOD LexerAsm::Fold(Sci_PositionU startPos, Sci_Position length, int  	LexAccessor styler(pAccess); -	unsigned int endPos = startPos + length; +	Sci_PositionU endPos = startPos + length;  	int visibleChars = 0; -	int lineCurrent = styler.GetLine(startPos); +	Sci_Position lineCurrent = styler.GetLine(startPos);  	int levelCurrent = SC_FOLDLEVELBASE;  	if (lineCurrent > 0)  		levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; @@ -391,7 +391,7 @@ void SCI_METHOD LexerAsm::Fold(Sci_PositionU startPos, Sci_Position length, int  	char word[100];  	int wordlen = 0;  	const bool userDefinedFoldMarkers = !options.foldExplicitStart.empty() && !options.foldExplicitEnd.empty(); -	for (unsigned int i = startPos; i < endPos; i++) { +	for (Sci_PositionU i = startPos; i < endPos; i++) {  		char ch = chNext;  		chNext = styler.SafeGetCharAt(i + 1);  		int stylePrev = style; @@ -453,7 +453,7 @@ void SCI_METHOD LexerAsm::Fold(Sci_PositionU startPos, Sci_Position length, int  			}  			lineCurrent++;  			levelCurrent = levelNext; -			if (atEOL && (i == static_cast<unsigned int>(styler.Length()-1))) { +			if (atEOL && (i == static_cast<Sci_PositionU>(styler.Length() - 1))) {  				// There is an empty line at end of file so give it same level and empty  				styler.SetLevel(lineCurrent, (levelCurrent | levelCurrent << 16) | SC_FOLDLEVELWHITEFLAG);  			}  | 
