[libcroco] Fix comparison warning



commit 387857601cf0cbbac468e0f2620daca5d2a8c095
Author: Marek Chalupa <mchqwerty gmail com>
Date:   Tue Dec 15 17:58:52 2015 +0100

    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 files 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;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]