From 32c2fb378fec932032d2a0d1d86cafacbcf5e3d9 Mon Sep 17 00:00:00 2001 From: Kruglov Pavel <48961922+Avogar@users.noreply.github.com> Date: Sat, 29 Oct 2022 00:02:44 +0200 Subject: [PATCH] Fix build --- src/Storages/NATS/NATSProducer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Storages/NATS/NATSProducer.cpp b/src/Storages/NATS/NATSProducer.cpp index ed97ea17093..4376bfb5fe9 100644 --- a/src/Storages/NATS/NATSProducer.cpp +++ b/src/Storages/NATS/NATSProducer.cpp @@ -75,7 +75,7 @@ void NATSProducer::publishThreadFunc(void * arg) if (!pop_result) throw Exception(ErrorCodes::LOGICAL_ERROR, "Could not pop payload"); - status = natsConnection_Publish(producer->connection.getConnection(), producer->subject.c_str(), payload.c_str(), payload.size()); + status = natsConnection_Publish(producer->connection.getConnection(), producer->subject.c_str(), payload.c_str(), static_cast(payload.size())); if (status != NATS_OK) {