From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) (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 BEC974696C1 for ; Mon, 18 May 2020 13:15:49 +0300 (MSK) Received: by mail-lf1-f66.google.com with SMTP id c21so7537485lfb.3 for ; Mon, 18 May 2020 03:15:49 -0700 (PDT) From: Cyrill Gorcunov Date: Mon, 18 May 2020 13:15:00 +0300 Message-Id: <20200518101502.117121-4-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 3/5] box/sql: vdbe -- fix compilation warning List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml Cc: Alexander Turenko pIn3->u.r is a "double", thus placate clang. Signed-off-by: Cyrill Gorcunov --- src/box/sql/vdbe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/box/sql/vdbe.c b/src/box/sql/vdbe.c index 724bc188b..2b5dde6d2 100644 --- a/src/box/sql/vdbe.c +++ b/src/box/sql/vdbe.c @@ -3387,9 +3387,9 @@ case OP_SeekGT: { /* jump, in3 */ i = pIn3->u.u; is_neg = false; } else if ((pIn3->flags & MEM_Real) == MEM_Real) { - if (pIn3->u.r > INT64_MAX) + if (pIn3->u.r > (double)INT64_MAX) i = INT64_MAX; - else if (pIn3->u.r < INT64_MIN) + else if (pIn3->u.r < (double)INT64_MIN) i = INT64_MIN; else i = pIn3->u.r; -- 2.26.2