Skip to content

Commit

Permalink
fix: remove relative numeric size for message contents c interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jun 8, 2023
1 parent 6fc2a64 commit 9a6db6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/native/message_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,11 @@ func (m *Message) GetMessageResponseContents() ([][]byte, error) {
}

// Get Response body
len := C.pactffi_sync_message_get_response_contents_length(message, C.ulong(i))
len := C.pactffi_sync_message_get_response_contents_length(message, C.size_t(i))
if len == 0 {
return nil, errors.New("retrieved an empty message")
}
data := C.pactffi_sync_message_get_response_contents_bin(message, C.ulong(i))
data := C.pactffi_sync_message_get_response_contents_bin(message, C.size_t(i))
if data == nil {
return nil, errors.New("retrieved an empty pointer to the message contents")
}
Expand Down

0 comments on commit 9a6db6b

Please sign in to comment.