diff options
Diffstat (limited to '')
-rw-r--r-- | src/parser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 607de8a..8675a7c 100644 --- a/src/parser.cpp +++ b/src/parser.cpp | |||
@@ -232,9 +232,11 @@ void Parser::unwind() | |||
232 | { | 232 | { |
233 | Token b = tsTerminal.peekPop(); | 233 | Token b = tsTerminal.peekPop(); |
234 | Token a = tsTerminal.peekPop(); | 234 | Token a = tsTerminal.peekPop(); |
235 | Number *pProduct = new Number( deref(a) * deref(b) ); | ||
236 | pProduct->setScale( lex.getScale() ); | ||
235 | tsTerminal.push( | 237 | tsTerminal.push( |
236 | Token( Token::tNumber, | 238 | Token( Token::tNumber, |
237 | new Number( deref(a) * deref(b) ) | 239 | pProduct |
238 | ) | 240 | ) |
239 | ); | 241 | ); |
240 | } | 242 | } |