Skip to content

Commit

Permalink
Merge pull request #296 from pact-foundation/fix/issue-295
Browse files Browse the repository at this point in the history
fix: remove relative numeric size for message contents c interface. Fixes #295.
  • Loading branch information
mefellows authored Jun 8, 2023
2 parents 6fc2a64 + 9a6db6b commit a1b3e78
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 a1b3e78

Please sign in to comment.