summaryrefslogtreecommitdiffstats
path: root/scintilla/src/PerLine.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scintilla/src/PerLine.cxx')
-rw-r--r--scintilla/src/PerLine.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/scintilla/src/PerLine.cxx b/scintilla/src/PerLine.cxx
index ef6b9b7..c7e5c99 100644
--- a/scintilla/src/PerLine.cxx
+++ b/scintilla/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 {