From: Cyrill Gorcunov <gorcunov@gmail.com> To: tml <tarantool-patches@dev.tarantool.org> Cc: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> Subject: [Tarantool-patches] [PATCH] box/raft: fix compilation issue Date: Wed, 30 Sep 2020 16:32:05 +0300 [thread overview] Message-ID: <20200930133205.183202-1-gorcunov@gmail.com> (raw) 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
next reply other threads:[~2020-09-30 13:32 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-09-30 13:32 Cyrill Gorcunov [this message] 2020-09-30 14:41 ` Kirill Yukhin 2020-10-01 22:14 ` Vladislav Shpilevoy 2020-10-01 22:36 ` Cyrill Gorcunov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200930133205.183202-1-gorcunov@gmail.com \ --to=gorcunov@gmail.com \ --cc=tarantool-patches@dev.tarantool.org \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH] box/raft: fix compilation issue' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox