mirror of https://github.com/go-python/gopy.git
Merge pull request #353 from Inotart/master
Replacement c.long(size) for c.longlong(size)
This commit is contained in:
commit
277bbad0c1
|
@ -409,7 +409,7 @@ otherwise parameter is a python list that we copy from
|
|||
g.gofile.Printf("s := deptrFromHandle_Slice_byte(handle)\n")
|
||||
g.gofile.Printf("ptr := unsafe.Pointer(&s[0])\n")
|
||||
g.gofile.Printf("size := len(s)\n")
|
||||
g.gofile.Printf("return C.PyBytes_FromStringAndSize((*C.char)(ptr), C.long(size))\n")
|
||||
g.gofile.Printf("return C.PyBytes_FromStringAndSize((*C.char)(ptr), C.longlong(size))\n")
|
||||
g.gofile.Outdent()
|
||||
g.gofile.Printf("}\n\n")
|
||||
|
||||
|
|
Loading…
Reference in New Issue