Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH] box/raft: fix compilation issue
@ 2020-09-30 13:32 Cyrill Gorcunov
  2020-09-30 14:41 ` Kirill Yukhin
  2020-10-01 22:14 ` Vladislav Shpilevoy
  0 siblings, 2 replies; 4+ messages in thread
From: Cyrill Gorcunov @ 2020-09-30 13:32 UTC (permalink / raw)
  To: tml; +Cc: Vladislav Shpilevoy

Without explicit cast we're getting warnings.

Signed-off-by: Cyrill Gorcunov <gorcunov@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-01 22:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-30 13:32 [Tarantool-patches] [PATCH] box/raft: fix compilation issue Cyrill Gorcunov
2020-09-30 14:41 ` Kirill Yukhin
2020-10-01 22:14 ` Vladislav Shpilevoy
2020-10-01 22:36   ` Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox