Skip to content

Commit 8e6808a

Browse files
committed
revert #353 -- doesn't work on CI or on my mac, on python 3.11 at least.
1 parent 277bbad commit 8e6808a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bind/gen_slice.go

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

0 commit comments

Comments
 (0)