(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:
Andrew Borodin 2011-08-29 13:43:46 +04:00 committed by Slava Zanko
parent 0274ef4653
commit 23ec140834

View File

@ -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++)