From 9a6db6bc79847fd5234b7b1ad41ea2c7b4f2bfb3 Mon Sep 17 00:00:00 2001 From: Matt Fellows Date: Thu, 8 Jun 2023 13:00:56 +1000 Subject: [PATCH] fix: remove relative numeric size for message contents c interface --- internal/native/message_server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/native/message_server.go b/internal/native/message_server.go index ae81e2818..c118df379 100644 --- a/internal/native/message_server.go +++ b/internal/native/message_server.go @@ -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") }