diff options
author | nyamatongwe <unknown> | 2001-12-19 10:20:17 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-12-19 10:20:17 +0000 |
commit | cddd96b682c707fe13caec63e736c89eb684c2d7 (patch) | |
tree | d4f26122151dc9f3bab605abaf7908beca306ed9 | |
parent | 281b5558e64fbf2de56592980998cd5141bc3e47 (diff) | |
download | scintilla-mirror-cddd96b682c707fe13caec63e736c89eb684c2d7.tar.gz |
Fixed some warnings from Borland.
-rw-r--r-- | src/Editor.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 10321a29f..1f7588a28 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1061,7 +1061,7 @@ void Editor::LayoutLine(int line, Surface *surface, ViewStyle &vstyle, LineLayou // +3 For a blank on front and rounded edge each side: ll.positions[charInLine + 1] = surface->WidthText(ctrlCharsFont, ctrlChar, strlen(ctrlChar)) + 3; } else { - char cc[2] = { controlCharSymbol, '\0' }; + char cc[2] = { static_cast<char>(controlCharSymbol), '\0' }; surface->MeasureWidths(ctrlCharsFont, cc, 1, ll.positions + startseg + 1); } @@ -1295,7 +1295,7 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis rcSegment.top + vsDraw.maxAscent, ctrlChar, strlen(ctrlChar), textBack, textFore); } else { - char cc[2] = { controlCharSymbol, '\0' }; + char cc[2] = { static_cast<char>(controlCharSymbol), '\0' }; surface->DrawTextNoClip(rcSegment, ctrlCharsFont, rcSegment.top + vsDraw.maxAscent, cc, 1, textBack, textFore); @@ -4913,7 +4913,6 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_GETCONTROLCHARSYMBOL: return controlCharSymbol; - break; case SCI_STARTRECORD: recordingMacro = true; |