Update gen_slice.go

This commit is contained in:
我不是Art 2024-04-30 12:14:44 +08:00 committed by GitHub
parent cdad836f8a
commit 69ffdd7010
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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")