From: Cyrill Gorcunov <gorcunov@gmail.com>
To: tml <tarantool-patches@dev.tarantool.org>
Cc: Alexander Turenko <alexander.turenko@tarantool.org>
Subject: [Tarantool-patches] [PATCH 1/5] test: unit/guava -- fix compilation warning
Date: Mon, 18 May 2020 13:14:58 +0300 [thread overview]
Message-ID: <20200518101502.117121-2-gorcunov@gmail.com> (raw)
In-Reply-To: <20200518101502.117121-1-gorcunov@gmail.com>
Convert to uint64_t explicitly.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
test/unit/guava.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/unit/guava.c b/test/unit/guava.c
index 4e3ced76a..fd496af9e 100644
--- a/test/unit/guava.c
+++ b/test/unit/guava.c
@@ -46,7 +46,8 @@ lcg_compat_check()
0, 55, 62, 8, 45, 59, 86, 97, 82, 59,
73, 37, 17, 56, 86, 21, 90, 37, 38, 83
};
- for (size_t i = 0; i < sizeof(golden100) / sizeof(int64_t); ++i)
+ uint64_t nr_elems = (uint64_t)sizeof(golden100) / sizeof(uint64_t);
+ for (size_t i = 0; i < nr_elems; ++i)
check_guava_correctness(golden100[i]);
fail_if(6 != guava(10863919174838991ULL, 11));
--
2.26.2
next prev parent reply other threads:[~2020-05-18 10:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-18 10:14 [Tarantool-patches] [PATCH 0/5] build: " Cyrill Gorcunov
2020-05-18 10:14 ` Cyrill Gorcunov [this message]
2020-05-18 10:14 ` [Tarantool-patches] [PATCH 2/5] box/sql: func -- " Cyrill Gorcunov
2020-05-18 11:13 ` Mergen Imeev
2020-05-18 11:32 ` Cyrill Gorcunov
2020-05-18 10:15 ` [Tarantool-patches] [PATCH 3/5] box/sql: vdbe " Cyrill Gorcunov
2020-05-18 10:15 ` [Tarantool-patches] [PATCH 4/5] box/sql: vdbemem " Cyrill Gorcunov
2020-05-18 10:15 ` [Tarantool-patches] [PATCH 5/5] box/vynil: quota -- fix compilation waning Cyrill Gorcunov
2020-05-19 12:33 ` Nikita Pettik
2020-10-01 12:07 ` [Tarantool-patches] [PATCH 0/5] build: fix compilation warning Kirill Yukhin
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=20200518101502.117121-2-gorcunov@gmail.com \
--to=gorcunov@gmail.com \
--cc=alexander.turenko@tarantool.org \
--cc=tarantool-patches@dev.tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH 1/5] test: unit/guava -- fix compilation warning' \
/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