mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-21 12:21:40 +03:00
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>
This commit is contained in:
parent
07a92c3988
commit
9d181a1cc6
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user