Fix position type
Py_ssize_t is not the same time on linux and windows (long vs longlong). Using the python size_t type fix the issuemaster
parent
8531cecce7
commit
0b25cc5505
2
dict.go
2
dict.go
|
@ -123,7 +123,7 @@ func PyDict_Size(p *PyObject) int {
|
|||
|
||||
//PyDict_Next : https://docs.python.org/3/c-api/dict.html#c.PyDict_Next
|
||||
func PyDict_Next(p *PyObject, ppos *int, pkey, pvalue **PyObject) bool {
|
||||
cpos := C.long(*ppos)
|
||||
cpos := C.Py_ssize_t(*ppos)
|
||||
ckey := toc(*pkey)
|
||||
cvalue := toc(*pvalue)
|
||||
|
||||
|
|
Loading…
Reference in New Issue