We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdad836 commit 69ffdd7Copy full SHA for 69ffdd7
bind/gen_slice.go
@@ -406,7 +406,7 @@ otherwise parameter is a python list that we copy from
406
g.gofile.Printf("s := deptrFromHandle_Slice_byte(handle)\n")
407
g.gofile.Printf("ptr := unsafe.Pointer(&s[0])\n")
408
g.gofile.Printf("size := len(s)\n")
409
- 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")
410
g.gofile.Outdent()
411
g.gofile.Printf("}\n\n")
412
0 commit comments