revert #353 -- doesn't work on CI or on my mac, on python 3.11 at least.

This commit is contained in:
Randall C. O'Reilly 2024-05-03 14:50:32 -07:00
parent 277bbad0c1
commit 8e6808ae74
1 changed files with 1 additions and 1 deletions

View File

@ -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("s := deptrFromHandle_Slice_byte(handle)\n")
g.gofile.Printf("ptr := unsafe.Pointer(&s[0])\n") g.gofile.Printf("ptr := unsafe.Pointer(&s[0])\n")
g.gofile.Printf("size := len(s)\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.Outdent()
g.gofile.Printf("}\n\n") g.gofile.Printf("}\n\n")