From 00fe734664e797fc5df56f00a77d071c314c5b9c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 25 Jun 2011 11:29:37 +1000 Subject: Add casts to avoid warnings from SDK 64-bit compiler. --- src/PerLine.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/PerLine.cxx') 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(strlen(text)), style); AnnotationHeader *pah = reinterpret_cast(annotations[line]); pah->style = static_cast(style); - pah->length = strlen(text); + pah->length = static_cast(strlen(text)); pah->lines = static_cast(NumberLines(text)); memcpy(annotations[line]+sizeof(AnnotationHeader), text, pah->length); } else { -- cgit v1.2.3