Skip to content

Commit

Permalink
Merge pull request #67 from michaeldelago:patch-1
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 644142365
  • Loading branch information
Copybara-Service committed Jun 17, 2024
2 parents 39cef64 + 7737f45 commit 917dd00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ i of grpc_byte_buffer BUFFER."

(defun convert-bytes-to-grpc-byte-buffer (bytes)
"Given a lisp-vector of BYTES convert them to a grpc_byte_buffer."
(let ((array (cffi:foreign-alloc :char :initial-contents bytes)))
(let ((array (cffi:foreign-alloc :unsigned-char :initial-contents bytes)))
(prog1
(cffi:foreign-funcall "convert_bytes_to_grpc_byte_buffer"
:pointer array
Expand Down Expand Up @@ -536,7 +536,7 @@ want. Returns a plist containing keys being the op type and values being the ind
(defun convert-bytes-to-grpc-slice (bytes)
"Takes a list of bytes BYTES and returns a pointer to the corresponding
grpc_slice*."
(let ((array (cffi:foreign-alloc :char :initial-contents bytes)))
(let ((array (cffi:foreign-alloc :unsigned-char :initial-contents bytes)))
(cffi:foreign-funcall "convert_bytes_to_grpc_slice"
:pointer array
:size (length bytes)
Expand Down

0 comments on commit 917dd00

Please sign in to comment.