[libcroco] Fix comparison warning
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libcroco] Fix comparison warning
- Date: Tue, 15 Dec 2015 18:12:52 +0000 (UTC)
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]