From 4083c8ecc2b5ca2851cd7a7410ac3ea91660e2d3 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Mon, 29 Aug 2011 13:43:46 +0400 Subject: [PATCH] (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 --- src/editor/editcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/editcmd.c b/src/editor/editcmd.c index cdc3eb13e..197aca281 100644 --- a/src/editor/editcmd.c +++ b/src/editor/editcmd.c @@ -1221,7 +1221,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++) -- 2.11.4.GIT