aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-09-20 11:29:37 +1000
committernyamatongwe <nyamatongwe@gmail.com>2013-09-20 11:29:37 +1000
commitcbe29ed7b372533c2955f5da6486d421b52a411c (patch)
tree90e5614371da1c7c834bfc8c9ba0c2cab2faccfd
parent506dbdc99b67ee326e6632f047523213c04be7f6 (diff)
downloadscintilla-mirror-cbe29ed7b372533c2955f5da6486d421b52a411c.tar.gz
Switch parameter type to sptr_t to avoid problems with negative numbers like
INVALID_POSITION=-1. From John Ehresman.
-rw-r--r--qt/ScintillaEdit/WidgetGen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt/ScintillaEdit/WidgetGen.py b/qt/ScintillaEdit/WidgetGen.py
index dc39dacab..ac1a13b59 100644
--- a/qt/ScintillaEdit/WidgetGen.py
+++ b/qt/ScintillaEdit/WidgetGen.py
@@ -72,7 +72,7 @@ def arguments(v, stringResult, options):
ret = ""
p1Type = cppAlias(v["Param1Type"])
if p1Type == "int":
- p1Type = "uptr_t"
+ p1Type = "sptr_t"
if p1Type:
ret = ret + p1Type + " " + normalisedName(v["Param1Name"], options)
p2Type = cppAlias(v["Param2Type"])
@@ -151,7 +151,7 @@ def printCPPFile(f, options):
if stringResult:
returns += " " + returnStatement + "TextReturner(" + featureDefineName + ", "
if "*" in cppAlias(v["Param1Type"]):
- returns += "(uptr_t)"
+ returns += "(sptr_t)"
if v["Param1Name"]:
returns += normalisedName(v["Param1Name"], options)
else:
@@ -160,7 +160,7 @@ def printCPPFile(f, options):
else:
returns += " " + returnStatement + "send(" + featureDefineName + ", "
if "*" in cppAlias(v["Param1Type"]):
- returns += "(uptr_t)"
+ returns += "(sptr_t)"
if v["Param1Name"]:
returns += normalisedName(v["Param1Name"], options)
else: