From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) (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 B003E469710 for ; Mon, 18 May 2020 13:15:26 +0300 (MSK) Received: by mail-lf1-f65.google.com with SMTP id a9so7526903lfb.8 for ; Mon, 18 May 2020 03:15:26 -0700 (PDT) From: Cyrill Gorcunov Date: Mon, 18 May 2020 13:14:58 +0300 Message-Id: <20200518101502.117121-2-gorcunov@gmail.com> In-Reply-To: <20200518101502.117121-1-gorcunov@gmail.com> References: <20200518101502.117121-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 1/5] test: unit/guava -- fix compilation warning List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml Cc: Alexander Turenko Convert to uint64_t explicitly. Signed-off-by: Cyrill Gorcunov --- 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