Skip to content

Commit 69ffdd7

Browse files
authored
Update gen_slice.go
1 parent cdad836 commit 69ffdd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bind/gen_slice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ otherwise parameter is a python list that we copy from
406406
g.gofile.Printf("s := deptrFromHandle_Slice_byte(handle)\n")
407407
g.gofile.Printf("ptr := unsafe.Pointer(&s[0])\n")
408408
g.gofile.Printf("size := len(s)\n")
409-
g.gofile.Printf("return C.PyBytes_FromStringAndSize((*C.char)(ptr), C.long(size))\n")
409+
g.gofile.Printf("return C.PyBytes_FromStringAndSize((*C.char)(ptr), C.longlong(size))\n")
410410
g.gofile.Outdent()
411411
g.gofile.Printf("}\n\n")
412412

0 commit comments

Comments
 (0)