modules/everything: More parentheses fixes for correct logic

Without the correctparenthese this would always evaluate to false.

CID 1212000, CID 1212001
This commit is contained in:
Stefan Schmidt 2014-09-05 14:38:36 +02:00
parent 831a45a2cb
commit 1180a5300b
1 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ evry_history_item_add(Evry_Item *it, const char *ctxt, const char *input)
if (!it)
return NULL;
if ((!it->plugin->history) && (!CHECK_TYPE(it, EVRY_TYPE_PLUGIN)))
if ((!it->plugin->history) && !(CHECK_TYPE(it, EVRY_TYPE_PLUGIN)))
return NULL;
if (it->type == EVRY_TYPE_ACTION)
@ -371,7 +371,7 @@ evry_history_item_usage_set(Evry_Item *it, const char *input, const char *ctxt)
else
it->usage = 0.0;
if ((!it->plugin->history) && (!CHECK_TYPE(it, EVRY_TYPE_PLUGIN)))
if ((!it->plugin->history) && !(CHECK_TYPE(it, EVRY_TYPE_PLUGIN)))
return 0;
if (it->hi)