From 8e6808ae7495ac5d6c8acd91210ccd6d15846b9d Mon Sep 17 00:00:00 2001 From: "Randall C. O'Reilly" Date: Fri, 3 May 2024 14:50:32 -0700 Subject: [PATCH] revert #353 -- doesn't work on CI or on my mac, on python 3.11 at least. --- bind/gen_slice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bind/gen_slice.go b/bind/gen_slice.go index bcf1f6c..c0ef885 100644 --- a/bind/gen_slice.go +++ b/bind/gen_slice.go @@ -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")