Skip to content

Commit

Permalink
[Go] attempt to fix CI failures for Windows due to type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed May 22, 2024
1 parent 9e3ba34 commit 98c3fd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions constantine-go/constantine.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,8 @@ func newSpans(data [][]byte) (spans []CttSpan) {
// pass the data of each `message` to C... So gotta malloc and copy
spans = make([]CttSpan, len(data), len(data))
for i, msg := range data {
mem := C.malloc(C.ulong(len(msg)))
C.memcpy(mem, unsafe.Pointer(&msg[0]), C.ulong(len(msg)))
mem := C.malloc(C.uint64_t(len(msg)))
C.memcpy(mem, unsafe.Pointer(&msg[0]), C.uint64_t(len(msg)))
spans[i] = CttSpan{data: (*C.byte)(mem), len: C.size_t(len(msg))}
}
return spans
Expand Down

0 comments on commit 98c3fd6

Please sign in to comment.