Skip to content

Commit

Permalink
Merge pull request #353 from Inotart/master
Browse files Browse the repository at this point in the history
Replacement c.long(size) for c.longlong(size)
  • Loading branch information
rcoreilly authored May 3, 2024
2 parents 49f8206 + 69ffdd7 commit 277bbad
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.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")

Expand Down

0 comments on commit 277bbad

Please sign in to comment.