Skip to content
Snippets Groups Projects
Commit d25ecab4 authored by Kirill Yukhin's avatar Kirill Yukhin
Browse files

box/raft: fix compilation issue


Without explicit cast we're getting warnings.

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
parent cf799645
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment