From 863f1ec174869f792fa91431bf4867c8f3977f2d Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Thu, 21 Oct 2010 12:22:10 +0300 Subject: [PATCH] Fixed bit operations in mc_search_regex__process_append_str() Signed-off-by: Slava Zanko --- lib/search/regex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/search/regex.c b/lib/search/regex.c index f19e1a2ca..2bc80fc4a 100644 --- a/lib/search/regex.c +++ b/lib/search/regex.c @@ -478,7 +478,7 @@ mc_search_regex__process_append_str (GString * dest_str, const char *from, gsize char_len = strlen (tmp_str); if (*replace_flags & REPLACE_T_UPP_TRANSFORM_CHAR) { - *replace_flags &= !REPLACE_T_UPP_TRANSFORM_CHAR; + *replace_flags &= ~REPLACE_T_UPP_TRANSFORM_CHAR; tmp_string = mc_search__toupper_case_str (NULL, tmp_str, char_len); g_string_append (dest_str, tmp_string->str); g_string_free (tmp_string, TRUE); @@ -486,7 +486,7 @@ mc_search_regex__process_append_str (GString * dest_str, const char *from, gsize } else if (*replace_flags & REPLACE_T_LOW_TRANSFORM_CHAR) { - *replace_flags &= !REPLACE_T_LOW_TRANSFORM_CHAR; + *replace_flags &= ~REPLACE_T_LOW_TRANSFORM_CHAR; tmp_string = mc_search__toupper_case_str (NULL, tmp_str, char_len); g_string_append (dest_str, tmp_string->str); g_string_free (tmp_string, TRUE);