From daebcbf2eb48fc38ad19752e3842d7ffcdf6e8e3 Mon Sep 17 00:00:00 2001 From: Kray-G Date: Tue, 30 Mar 2021 08:39:49 +0900 Subject: [PATCH] fixed #256: comparison should work. --- src/exec/code/ge.inc | 1 + src/exec/code/le.inc | 1 + src/exec/code/lt.inc | 1 + 3 files changed, 3 insertions(+) diff --git a/src/exec/code/ge.inc b/src/exec/code/ge.inc index 854fd56ba..6ead4bed9 100644 --- a/src/exec/code/ge.inc +++ b/src/exec/code/ge.inc @@ -118,6 +118,7 @@ int exc = 0; \ (void)kx_try_le_i(ctx, cur, v1, &exc); /* comparing by opposite operation */ \ KX_EXCEPTION_CHECK("SystemException", exc); \ + cur = cur->next; \ } \ } \ /**/ diff --git a/src/exec/code/le.inc b/src/exec/code/le.inc index b9bdbf575..f9dfd0aa2 100644 --- a/src/exec/code/le.inc +++ b/src/exec/code/le.inc @@ -118,6 +118,7 @@ int exc = 0; \ (void)kx_try_ge_i(ctx, cur, v1, &exc); /* comparing by opposite operation */ \ KX_EXCEPTION_CHECK("SystemException", exc); \ + cur = cur->next; \ } \ } \ /**/ diff --git a/src/exec/code/lt.inc b/src/exec/code/lt.inc index 62346e988..e7f950913 100644 --- a/src/exec/code/lt.inc +++ b/src/exec/code/lt.inc @@ -118,6 +118,7 @@ int exc = 0; \ (void)kx_try_gt_i(ctx, cur, v1, &exc); /* comparing by opposite operation */ \ KX_EXCEPTION_CHECK("SystemException", exc); \ + cur = cur->next; \ } \ } \ /**/