Skip to content

Commit 917dd00

Browse files
Merge pull request #67 from michaeldelago:patch-1
PiperOrigin-RevId: 644142365
2 parents 39cef64 + 7737f45 commit 917dd00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared.lisp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ i of grpc_byte_buffer BUFFER."
367367

368368
(defun convert-bytes-to-grpc-byte-buffer (bytes)
369369
"Given a lisp-vector of BYTES convert them to a grpc_byte_buffer."
370-
(let ((array (cffi:foreign-alloc :char :initial-contents bytes)))
370+
(let ((array (cffi:foreign-alloc :unsigned-char :initial-contents bytes)))
371371
(prog1
372372
(cffi:foreign-funcall "convert_bytes_to_grpc_byte_buffer"
373373
:pointer array
@@ -536,7 +536,7 @@ want. Returns a plist containing keys being the op type and values being the ind
536536
(defun convert-bytes-to-grpc-slice (bytes)
537537
"Takes a list of bytes BYTES and returns a pointer to the corresponding
538538
grpc_slice*."
539-
(let ((array (cffi:foreign-alloc :char :initial-contents bytes)))
539+
(let ((array (cffi:foreign-alloc :unsigned-char :initial-contents bytes)))
540540
(cffi:foreign-funcall "convert_bytes_to_grpc_slice"
541541
:pointer array
542542
:size (length bytes)

0 commit comments

Comments
 (0)