From bc7dbfd71ddc8752cd50beb509e8e24935822232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 17 Jan 2009 14:21:53 +0000 Subject: [PATCH] Forgot to add "x" as a multiplication sign as well. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28922 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/deskcalc/ExpressionParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/deskcalc/ExpressionParser.cpp b/src/apps/deskcalc/ExpressionParser.cpp index 132bfec9a7..617d40a17b 100644 --- a/src/apps/deskcalc/ExpressionParser.cpp +++ b/src/apps/deskcalc/ExpressionParser.cpp @@ -154,7 +154,7 @@ class Tokenizer { TOKEN_CONSTANT); fCurrentToken.value = temp.String(); - } else if (isalpha(*fCurrentChar)) { + } else if (isalpha(*fCurrentChar) && *fCurrentChar != 'x') { const char* begin = fCurrentChar; while (*fCurrentChar != 0 && (isalpha(*fCurrentChar) @@ -177,6 +177,7 @@ class Tokenizer { type = TOKEN_MINUS; break; case '*': + case 'x': type = TOKEN_STAR; break; case '/':