From 387857601cf0cbbac468e0f2620daca5d2a8c095 Mon Sep 17 00:00:00 2001 From: Marek Chalupa Date: Tue, 15 Dec 2015 17:58:52 +0100 Subject: Fix comparison warning Logical ! was only applied to the left side of the comparison https://bugzilla.gnome.org/show_bug.cgi?id=758394 --- src/cr-sel-eng.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cr-sel-eng.c b/src/cr-sel-eng.c index 8a1a89a..3cd7241 100644 --- a/src/cr-sel-eng.c +++ b/src/cr-sel-eng.c @@ -126,7 +126,7 @@ lang_pseudo_class_handler (CRSelEng * a_this, if (strqcmp (a_sel->content.pseudo->name->stryng->str, "lang", 4) - || !a_sel->content.pseudo->type == FUNCTION_PSEUDO) { + || a_sel->content.pseudo->type != FUNCTION_PSEUDO) { cr_utils_trace_info ("This handler is for :lang only"); return CR_BAD_PSEUDO_CLASS_SEL_HANDLER_ERROR; } @@ -167,7 +167,7 @@ first_child_pseudo_class_handler (CRSelEng * a_this, if (strcmp (a_sel->content.pseudo->name->stryng->str, "first-child") - || !a_sel->content.pseudo->type == IDENT_PSEUDO) { + || a_sel->content.pseudo->type != IDENT_PSEUDO) { cr_utils_trace_info ("This handler is for :first-child only"); return CR_BAD_PSEUDO_CLASS_SEL_HANDLER_ERROR; } -- cgit v1.2.1