Fix the high passed to PyTuple_GetSlice in varargs wrappers.
Harmless bug as slices can take any size larger than the actual size for the high value. Reported in SF Bug 1326.
This commit is contained in:
parent
6e794da3f3
commit
0f1e3da5de
3 changed files with 10 additions and 3 deletions
|
|
@ -2,3 +2,6 @@ import python_varargs_typemap
|
|||
|
||||
if (python_varargs_typemap.testfunc(1, 2.0, "three") != "three") :
|
||||
raise RuntimeError("testfunc failed!")
|
||||
|
||||
if (python_varargs_typemap.testfunc(1, 2.0, "three", "four", "five") != "threefourfive") :
|
||||
raise RuntimeError("testfunc failed!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue