diff options
| author | nyamatongwe <unknown> | 2002-03-04 06:55:34 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2002-03-04 06:55:34 +0000 | 
| commit | 91809b7ad09ca081a06b4ab4a70649d622fedd60 (patch) | |
| tree | 820fdf1d44ef94480e3d10a2549286ea5eaba529 | |
| parent | a38426717abbb32d1f44e57a77151c3e070c943e (diff) | |
| download | scintilla-mirror-91809b7ad09ca081a06b4ab4a70649d622fedd60.tar.gz | |
Fixed Borland warning.
| -rw-r--r-- | src/Editor.cxx | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 5e648167d..b73576dd8 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -112,14 +112,14 @@ void LineLayout::SetBracesHighlight(Range rangeLine, Position braces[],  		int braceOffset = braces[0] - rangeLine.start;  		if (braceOffset < numCharsInLine) {  			bracePreviousStyles[0] = styles[braceOffset]; -			styles[braceOffset] = static_cast<char>(bracesMatchStyle); +			styles[braceOffset] = bracesMatchStyle;  		}  	}  	if (rangeLine.ContainsCharacter(braces[1])) {  		int braceOffset = braces[1] - rangeLine.start;  		if (braceOffset < numCharsInLine) {  			bracePreviousStyles[1] = styles[braceOffset]; -			styles[braceOffset] = static_cast<char>(bracesMatchStyle); +			styles[braceOffset] = bracesMatchStyle;  		}  	}  	if ((braces[0] >= rangeLine.start && braces[1] <= rangeLine.end) || @@ -1899,8 +1899,8 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) {  				Range rangeLine(pdoc->LineStart(lineDoc), pdoc->LineStart(lineDoc + 1));  				// Highlight the current braces if any -				ll->SetBracesHighlight(rangeLine, braces,  -					bracesMatchStyle, highlightGuideColumn * vs.spaceWidth); +				ll->SetBracesHighlight(rangeLine, braces, static_cast<char>(bracesMatchStyle), +					highlightGuideColumn * vs.spaceWidth);  				// Draw the line  				DrawLine(surface, vs, lineDoc, visibleLine, xStart, rcLine, ll, subLine); | 
