summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Chalupa <mchqwerty@gmail.com>2015-12-15 17:58:52 +0100
committerIgnacio Casal Quinteiro <icq@gnome.org>2015-12-15 19:11:38 +0100
commit387857601cf0cbbac468e0f2620daca5d2a8c095 (patch)
tree6d22e91c7d42b5218a646b89c8618db8adbae53d
parent1e3112a925e09a1f54a30af2e2c0cfb85d139100 (diff)
downloadlibcroco-387857601cf0cbbac468e0f2620daca5d2a8c095.tar.gz
Fix comparison warning
Logical ! was only applied to the left side of the comparison https://bugzilla.gnome.org/show_bug.cgi?id=758394
-rw-r--r--src/cr-sel-eng.c4
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;
}