aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PerLine.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-06-25 11:29:37 +1000
committernyamatongwe <devnull@localhost>2011-06-25 11:29:37 +1000
commit00fe734664e797fc5df56f00a77d071c314c5b9c (patch)
tree4151249b020594defbfdb157a777bc7a43bad3c4 /src/PerLine.cxx
parent509cc0afef07cd8912e18151a08190b58763360b (diff)
downloadscintilla-mirror-00fe734664e797fc5df56f00a77d071c314c5b9c.tar.gz
Add casts to avoid warnings from SDK 64-bit compiler.
Diffstat (limited to 'src/PerLine.cxx')
-rw-r--r--src/PerLine.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PerLine.cxx b/src/PerLine.cxx
index 8fc6e2531..7d961a886 100644
--- a/src/PerLine.cxx
+++ b/src/PerLine.cxx
@@ -425,10 +425,10 @@ void LineAnnotation::SetText(int line, const char *text) {
if (annotations[line]) {
delete []annotations[line];
}
- annotations[line] = AllocateAnnotation(strlen(text), style);
+ annotations[line] = AllocateAnnotation(static_cast<int>(strlen(text)), style);
AnnotationHeader *pah = reinterpret_cast<AnnotationHeader *>(annotations[line]);
pah->style = static_cast<short>(style);
- pah->length = strlen(text);
+ pah->length = static_cast<int>(strlen(text));
pah->lines = static_cast<short>(NumberLines(text));
memcpy(annotations[line]+sizeof(AnnotationHeader), text, pah->length);
} else {