From 49dbca76d7e87fb020bbebf954c15bb66f43cb1e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 29 Jun 2012 22:46:51 +1000 Subject: Fix 64-bit compilation errors on Windows. From Fan Yang. --- qt/ScintillaEditBase/ScintillaEditBase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qt/ScintillaEditBase/ScintillaEditBase.cpp') diff --git a/qt/ScintillaEditBase/ScintillaEditBase.cpp b/qt/ScintillaEditBase/ScintillaEditBase.cpp index b6cca8166..067b0f4ab 100644 --- a/qt/ScintillaEditBase/ScintillaEditBase.cpp +++ b/qt/ScintillaEditBase/ScintillaEditBase.cpp @@ -469,7 +469,7 @@ QVariant ScintillaEditBase::inputMethodQuery(Qt::InputMethodQuery query) const { char fontName[64]; int style = send(SCI_GETSTYLEAT, pos); - int len = send(SCI_STYLEGETFONT, style, (long)fontName); + int len = send(SCI_STYLEGETFONT, style, (sptr_t)fontName); int size = send(SCI_STYLEGETSIZE, style); bool italic = send(SCI_STYLEGETITALIC, style); int weight = send(SCI_STYLEGETBOLD, style) ? QFont::Bold : -1; @@ -496,7 +496,7 @@ QVariant ScintillaEditBase::inputMethodQuery(Qt::InputMethodQuery query) const textRange.chrg = charRange; textRange.lpstrText = buffer.data(); - send(SCI_GETTEXTRANGE, 0, (long)&textRange); + send(SCI_GETTEXTRANGE, 0, (sptr_t)&textRange); return sqt->StringFromDocument(buffer.constData()); } @@ -504,7 +504,7 @@ QVariant ScintillaEditBase::inputMethodQuery(Qt::InputMethodQuery query) const case Qt::ImCurrentSelection: { QVarLengthArray buffer(send(SCI_GETSELTEXT)); - send(SCI_GETSELTEXT, 0, (long)buffer.data()); + send(SCI_GETSELTEXT, 0, (sptr_t)buffer.data()); return sqt->StringFromDocument(buffer.constData()); } -- cgit v1.2.3