From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 8E335469719 for ; Wed, 30 Sep 2020 16:32:10 +0300 (MSK) Received: by mail-lf1-f67.google.com with SMTP id w11so2170924lfn.2 for ; Wed, 30 Sep 2020 06:32:10 -0700 (PDT) From: Cyrill Gorcunov Date: Wed, 30 Sep 2020 16:32:05 +0300 Message-Id: <20200930133205.183202-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH] box/raft: fix compilation issue List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml Cc: Vladislav Shpilevoy Without explicit cast we're getting warnings. Signed-off-by: Cyrill Gorcunov --- 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