commit 9d181a1cc649a8aa4c278450dba053b664e9ae81
parent 07a92c3988d8fae4a139ff269dcdf03a396c38b3
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Wed, 20 Nov 2024 11:40:08 +0100
build: fix a compilation error with gcc-15
Assigning a pointer to a boolean variable without a cast
is not accepted any more.
This addresses https://savannah.gnu.org/bugs/?66467.
Reported-by: Rudi Heitbaum <rudi@heitbaum.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/move.c b/src/move.c
@@ -189,7 +189,7 @@ void to_top_row(void)
set_proper_index_and_pww(&leftedge, offset, FALSE);
- refresh_needed = (openfile->mark);
+ refresh_needed = (openfile->mark != NULL);
}
/* Place the cursor on the last row in the viewport, when possible. */
@@ -205,7 +205,7 @@ void to_bottom_row(void)
go_forward_chunks(editwinrows - 1, &openfile->current, &leftedge);
set_proper_index_and_pww(&leftedge, offset, TRUE);
- refresh_needed = (openfile->mark);
+ refresh_needed = (openfile->mark != NULL);
}
/* Put the cursor line at the center, then the top, then the bottom. */