aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-03-04 06:55:34 +0000
committernyamatongwe <devnull@localhost>2002-03-04 06:55:34 +0000
commit4b837e88f5bc0a8504cf3a65c196dafbcb31fb1b (patch)
tree820fdf1d44ef94480e3d10a2549286ea5eaba529
parenta7f65a490650406b2e73037bd2c9600070246a75 (diff)
downloadscintilla-mirror-4b837e88f5bc0a8504cf3a65c196dafbcb31fb1b.tar.gz
Fixed Borland warning.
-rw-r--r--src/Editor.cxx8
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);