diff options
author | nyamatongwe <devnull@localhost> | 2001-09-09 12:49:12 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-09-09 12:49:12 +0000 |
commit | cbae3c19442226c42c1172946f22c62f26bda2e8 (patch) | |
tree | c9e919f308f5c721640237d4bfb17242eb9d9f87 /src/LineMarker.cxx | |
parent | 700ac1b8dd16778c126973365ffc99a2182a003b (diff) | |
download | scintilla-mirror-cbae3c19442226c42c1172946f22c62f26bda2e8.tar.gz |
Fixed warning from Borland.
Diffstat (limited to 'src/LineMarker.cxx')
-rw-r--r-- | src/LineMarker.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index 9cb5d0d79..a7c5b124f 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -231,9 +231,8 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac surface->LineTo(centreX, centreY - blobSize); } else if (markType >= SC_MARK_CHARACTER) { - char character[2]; - character[0] = ' '; - character[0] = markType - SC_MARK_CHARACTER; + char character[1]; + character[0] = static_cast<char>(markType - SC_MARK_CHARACTER); int width = surface->WidthText(fontForCharacter, character, 1); rc.left += (rc.Width() - width) / 2; rc.right = rc.left + width; |