diff options
author | nyamatongwe <unknown> | 2011-06-25 11:29:37 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-06-25 11:29:37 +1000 |
commit | bd9c56e568d9a725896ff644214b84b095d5e0ef (patch) | |
tree | a817dd1723d9e6f27bdf746b787b84956856a8d0 /src/PerLine.cxx | |
parent | f3ba280682cb414a0b9c37a6c3e6e1c11925a90f (diff) | |
download | scintilla-mirror-bd9c56e568d9a725896ff644214b84b095d5e0ef.tar.gz |
Add casts to avoid warnings from SDK 64-bit compiler.
Diffstat (limited to 'src/PerLine.cxx')
-rw-r--r-- | src/PerLine.cxx | 4 |
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 { |