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; \ } \ } \ /**/