mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-09 13:02:01 +03:00
(edit_move_block_to_left): cleanup -Wunsafe-loop-optimizations.
edit.c: In function 'edit_move_block_to_left': edit.c:1652:13: warning: cannot optimize possibly infinite loops [-Wunsafe-loop-optimizations] for (i = 1; i <= del_tab_width; i++) ^~~ Signed-off-by: Andreas Mohr <and@gmx.li> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
38fc00669d
commit
c5efd8a1e1
@ -1649,7 +1649,7 @@ edit_move_block_to_left (WEdit * edit)
|
||||
if (next_char == '\t')
|
||||
edit_delete (edit, TRUE);
|
||||
else if (next_char == ' ')
|
||||
for (i = 1; i <= del_tab_width; i++)
|
||||
for (i = 0; i < del_tab_width; i++)
|
||||
{
|
||||
if (next_char == ' ')
|
||||
edit_delete (edit, TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user