(move_to_top): fix a 14-years error in condition.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2023-12-08 20:27:55 +03:00
parent 8cebe41b9a
commit 8f9593d2d5
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ move_backward (int i)
static void static void
move_to_top (void) move_to_top (void)
{ {
while (((int) (currentpoint > fdata) > 0) && (*currentpoint != CHAR_NODE_END)) while (((int) (currentpoint - fdata) > 0) && (*currentpoint != CHAR_NODE_END))
currentpoint--; currentpoint--;
while (*currentpoint != ']') while (*currentpoint != ']')