From 4686a15e77aae4d9a584a96eb52eca65d3c71082 Mon Sep 17 00:00:00 2001 From: PioneerAxon Date: Tue, 21 Aug 2012 14:45:35 +0530 Subject: [PATCH] Add "&" as operator AND OR and XOR has conflicting symbol with ABS and POW. Detailed bug description can be found here. https://bugs.launchpad.net/ubuntu/+source/gcalctool/+bug/665033 --- src/prelexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prelexer.c b/src/prelexer.c index a22dd0d..3eee903 100644 --- a/src/prelexer.c +++ b/src/prelexer.c @@ -124,7 +124,7 @@ pl_get_next_token(PreLexerState* state) if(g_unichar_isalpha(ch)) return PL_LETTER; /* All alphabets excluding A-F. [a-fA-F] are reported as PL_HEX. */ - if(pl_compare_all(ch, 1, (gchar*[]){"∧"})) + if(pl_compare_all(ch, 2, (gchar*[]){"∧","&"})) return T_AND; if(pl_compare_all(ch, 1, (gchar*[]){"∨"})) -- 1.7.9.5