fix(py): Change uintptr to int in container types
This commit is contained in:
@@ -25,18 +25,18 @@ import (
|
||||
// Return a new tuple object of size len, or nil on failure.
|
||||
//
|
||||
//go:linkname NewTuple C.PyTuple_New
|
||||
func NewTuple(len uintptr) *Object
|
||||
func NewTuple(len int) *Object
|
||||
|
||||
// Take a pointer to a tuple object, and return the size of that tuple.
|
||||
//
|
||||
// llgo:link (*Object).TupleLen C.PyTuple_Size
|
||||
func (t *Object) TupleLen() uintptr { return 0 }
|
||||
func (t *Object) TupleLen() int { return 0 }
|
||||
|
||||
// Return the object at position pos in the tuple pointed to t. If pos is
|
||||
// negative or out of bounds, return nil and set an IndexError exception.
|
||||
//
|
||||
// llgo:link (*Object).TupleItem C.PyTuple_GetItem
|
||||
func (t *Object) TupleItem(index uintptr) *Object { return nil }
|
||||
func (t *Object) TupleItem(index int) *Object { return nil }
|
||||
|
||||
// Insert a reference to object o at position pos of the tuple pointed to by t.
|
||||
// Return 0 on success. If pos is out of bounds, return -1 and set an
|
||||
|
||||
Reference in New Issue
Block a user