[Tarantool-patches] [PATCH 3/5] box/sql: vdbe -- fix compilation warning
Cyrill Gorcunov
gorcunov at gmail.com
Mon May 18 13:15:00 MSK 2020
pIn3->u.r is a "double", thus placate clang.
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
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
More information about the Tarantool-patches
mailing list