This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch rpc-refactor
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/rpc-refactor by this push:
     new f1e9b45348 Extra fix RPC
f1e9b45348 is described below

commit f1e9b45348f167f6bdce4ced8ce7b897592de40f
Author: tqchen <[email protected]>
AuthorDate: Thu May 8 15:27:02 2025 -0400

    Extra fix RPC
---
 src/runtime/minrpc/minrpc_server.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/runtime/minrpc/minrpc_server.h 
b/src/runtime/minrpc/minrpc_server.h
index dc99c0d2c9..f2dcf60992 100644
--- a/src/runtime/minrpc/minrpc_server.h
+++ b/src/runtime/minrpc/minrpc_server.h
@@ -65,8 +65,9 @@ class MinRPCServer {
   using FServerHandler = ffi::TypedFunction<int(TVMFFIByteArray*, int)>;
 
   explicit MinRPCServer(TIOHandler* io) : io_(io), arena_(PageAllocator(io_)) {
-    auto fsend = ffi::Function::FromTyped(
-        [this](TVMFFIByteArray* bytes) { return io_->PosixWrite(bytes->data, 
bytes->size); });
+    auto fsend = ffi::Function::FromTyped([this](TVMFFIByteArray* bytes) {
+      return io_->PosixWrite(static_cast<const uint8_t*>(bytes->data), 
bytes->size);
+    });
     auto fcreate = 
tvm::ffi::Function::GetGlobalRequired("rpc.CreateEventDrivenServer");
     ffi::Any value = fcreate(fsend, "MinRPCServer", "");
     fserver_handler_ = value.cast<FServerHandler>();

Reply via email to