diff options
| author | Unknown <nyamatongwe@gmail.com> | 2013-09-20 11:29:37 +1000 | 
|---|---|---|
| committer | Unknown <nyamatongwe@gmail.com> | 2013-09-20 11:29:37 +1000 | 
| commit | 5b0073f49763a584b01f24ee39d02e19bc53a7ac (patch) | |
| tree | f1598681b5c6a0c039944ed915eeee0e0840fe82 | |
| parent | 0168c7575718227e4da1ce0ce8c412aa4e5f23da (diff) | |
| download | scintilla-mirror-5b0073f49763a584b01f24ee39d02e19bc53a7ac.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.py | 6 | 
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: | 
