Skip to content

Commit

Permalink
revert #353 -- doesn't work on CI or on my mac, on python 3.11 at least.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed May 3, 2024
1 parent 277bbad commit 8e6808a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bind/gen_slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.longlong(size))\n")
g.gofile.Printf("return C.PyBytes_FromStringAndSize((*C.char)(ptr), C.long(size))\n")
g.gofile.Outdent()
g.gofile.Printf("}\n\n")

Expand Down

0 comments on commit 8e6808a

Please sign in to comment.