From 9d181a1cc649a8aa4c278450dba053b664e9ae81 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 20 Nov 2024 11:40:08 +0100 Subject: [PATCH] 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 --- src/move.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/move.c b/src/move.c index ef350341..cb58a060 100644 --- 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. */