From 69ffdd7010551fb80779d549c01da3f30f7987bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E4=B8=8D=E6=98=AFArt?= <101685021+Inotart@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:14:44 +0800 Subject: [PATCH] Update gen_slice.go --- 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 fa0ab54..70a3e62 100644 --- a/bind/gen_slice.go +++ b/bind/gen_slice.go @@ -406,7 +406,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.long(size))\n") + g.gofile.Printf("return C.PyBytes_FromStringAndSize((*C.char)(ptr), C.longlong(size))\n") g.gofile.Outdent() g.gofile.Printf("}\n\n")