tweaks: don't pass a pointer when a boolean is expected

For some reason, when configured with --with-slang, some extra compiler
warnings are enabled that are not enabled by --extra-warnings.  :|
master
Benno Schulenberg 2019-03-17 19:04:18 +01:00
parent 513d2ae905
commit e0fab690cc
2 changed files with 3 additions and 3 deletions

View File

@ -384,7 +384,7 @@ void do_cut_text_void(void)
openfile->current_undo->mark_begin_lineno != openfile->current->lineno || openfile->current_undo->mark_begin_lineno != openfile->current->lineno ||
!keep_cutbuffer) !keep_cutbuffer)
add_undo(CUT); add_undo(CUT);
do_cut_text(FALSE, openfile->mark, FALSE, FALSE); do_cut_text(FALSE, openfile->mark != NULL, FALSE, FALSE);
update_undo(CUT); update_undo(CUT);
#else #else
if (is_cuttable(FALSE)) if (is_cuttable(FALSE))
@ -460,7 +460,7 @@ void zap_text(void)
cutbuffer = openfile->current_undo->cutbuffer; cutbuffer = openfile->current_undo->cutbuffer;
cutbottom = openfile->current_undo->cutbottom; cutbottom = openfile->current_undo->cutbottom;
do_cut_text(FALSE, openfile->mark, FALSE, TRUE); do_cut_text(FALSE, openfile->mark != NULL, FALSE, TRUE);
update_undo(ZAP); update_undo(ZAP);

View File

@ -1039,7 +1039,7 @@ bool execute_command(const char *command)
openfile->current_x = 0; openfile->current_x = 0;
} }
add_undo(CUT); add_undo(CUT);
do_cut_text(FALSE, openfile->mark, openfile->mark == NULL, FALSE); do_cut_text(FALSE, openfile->mark != NULL, openfile->mark == NULL, FALSE);
update_undo(CUT); update_undo(CUT);
} }