[Tarantool-patches] [PATCH] box/raft: fix compilation issue

Cyrill Gorcunov gorcunov at gmail.com
Wed Sep 30 16:32:05 MSK 2020


Without explicit cast we're getting warnings.

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 src/box/raft.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/box/raft.c b/src/box/raft.c
index e88e5adb6..0b6c373e8 100644
--- a/src/box/raft.c
+++ b/src/box/raft.c
@@ -271,7 +271,8 @@ raft_request_to_string(const struct raft_request *req)
 	int size = 1024;
 	char buf[1024];
 	char *pos = buf;
-	int rc = snprintf(pos, size, "{term: %llu", req->term);
+	int rc = snprintf(pos, size, "{term: %llu",
+			  (unsigned long long)req->term);
 	assert(rc >= 0);
 	pos += rc;
 	size -= rc;
-- 
2.26.2



More information about the Tarantool-patches mailing list