aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-sexp.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-06-26 08:20:58 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-06-26 08:20:58 +0800
commit9c1dcd7eaa786f6f05602a539c39e47516a86d9c (patch)
tree0848794ea7320cb08460685ba29122fc71e17a97 /e-util/e-sexp.c
parent3570cc5bbf3c5d3b10d578a0f8444d95e57eb4d3 (diff)
downloadgsoc2013-evolution-9c1dcd7eaa786f6f05602a539c39e47516a86d9c.tar.gz
gsoc2013-evolution-9c1dcd7eaa786f6f05602a539c39e47516a86d9c.tar.zst
gsoc2013-evolution-9c1dcd7eaa786f6f05602a539c39e47516a86d9c.zip
When ANDing two bools, don't use a bitwise AND.
2001-06-25 Jeffrey Stedfast <fejj@ximian.com> * e-sexp.c (term_eval_and): When ANDing two bools, don't use a bitwise AND. svn path=/trunk/; revision=10499
Diffstat (limited to 'e-util/e-sexp.c')
-rw-r--r--e-util/e-sexp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/e-util/e-sexp.c b/e-util/e-sexp.c
index 83a9056e5e..e8b100808f 100644
--- a/e-util/e-sexp.c
+++ b/e-util/e-sexp.c
@@ -251,7 +251,7 @@ term_eval_and(struct _ESExp *f, int argc, struct _ESExpTerm **argv, void *data)
e_sexp_result_free(f, r1);
g_hash_table_destroy(ht);
e_sexp_fatal_error(f, "Invalid types in AND");
- } else if ( r1->type == ESEXP_RES_ARRAY_PTR ) {
+ } else if (r1->type == ESEXP_RES_ARRAY_PTR) {
char **a1;
int l1, j;
@@ -262,8 +262,8 @@ term_eval_and(struct _ESExp *f, int argc, struct _ESExpTerm **argv, void *data)
n = (int)g_hash_table_lookup(ht, a1[j]);
g_hash_table_insert(ht, a1[j], (void *)n+1);
}
- } else if ( r1->type == ESEXP_RES_BOOL ) {
- bool &= r1->value.bool;
+ } else if (r1->type == ESEXP_RES_BOOL) {
+ bool = bool && r1->value.bool;
}
e_sexp_result_free(f, r1);
}