aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/ScintillaCallable.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-06-09 12:48:20 +1000
committerNeil <nyamatongwe@gmail.com>2017-06-09 12:48:20 +1000
commitcadf6f4d8d902db7ba2b83a3de707fc0049a2e05 (patch)
treeb888bb19ce890262ca53d853573c6956ec77a0c7 /test/ScintillaCallable.py
parent13324ebe2cc0f222228e00d84ceabd79d695c0fa (diff)
downloadscintilla-mirror-cadf6f4d8d902db7ba2b83a3de707fc0049a2e05.tar.gz
Backport: Use 64-bit safe type for return from Scintilla.
Allows pointer returning methods like GetRangePointer to work in 64-bit code. Backport of changeset 6298:3dc0f211989f.
Diffstat (limited to 'test/ScintillaCallable.py')
-rw-r--r--test/ScintillaCallable.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ScintillaCallable.py b/test/ScintillaCallable.py
index 6a27def22..44faac649 100644
--- a/test/ScintillaCallable.py
+++ b/test/ScintillaCallable.py
@@ -4,7 +4,7 @@ from __future__ import unicode_literals
import ctypes, os, sys
-from ctypes import c_int, c_ulong, c_char_p, c_wchar_p, c_ushort, c_uint, c_long
+from ctypes import c_int, c_ulong, c_char_p, c_wchar_p, c_ushort, c_uint, c_long, c_ssize_t
class TEXTRANGE(ctypes.Structure):
_fields_= (\
@@ -42,7 +42,7 @@ class SciCall:
ll = ctypes.cast(l, c_char_p)
return self._fn(self._ptr, self._msg, ww, ll)
-sciFX = ctypes.CFUNCTYPE(c_long, c_char_p, c_int, c_char_p, c_char_p)
+sciFX = ctypes.CFUNCTYPE(c_ssize_t, c_char_p, c_int, c_char_p, c_char_p)
class ScintillaCallable:
def __init__(self, face, scifn, sciptr):