mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
(edit_collect_completions): fixed warinig:
editcmd.c:1104:42: warning: use of logical && with constant operand; switch to bitwise & or remove constant [-Wconstant-logical-operand] if (*num == MAX_WORD_COMPLETIONS && MAX_WORD_COMPLETIONS) ^ ~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
0274ef4653
commit
23ec140834
@ -1101,7 +1101,7 @@ edit_collect_completions (WEdit * edit, long start, gsize word_len,
|
||||
g_string_free (temp, TRUE);
|
||||
continue;
|
||||
}
|
||||
if (*num == MAX_WORD_COMPLETIONS && MAX_WORD_COMPLETIONS)
|
||||
if (*num == MAX_WORD_COMPLETIONS)
|
||||
{
|
||||
g_free (compl[0].text);
|
||||
for (i = 1; i < *num; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user