diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-27 22:50:47 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-27 22:50:47 -0600 |
commit | 2c82d91b8c5ac4b7b5813a8c09b130e12180974c (patch) | |
tree | 751d78dee20fe34f785b0eccfbf82ddccae2648d /src/parser.yy | |
parent | a805660cba37d573bd07615cbdb36d3bba11ecc1 (diff) | |
download | abakus-2c82d91b8c5ac4b7b5813a8c09b130e12180974c.tar.gz abakus-2c82d91b8c5ac4b7b5813a8c09b130e12180974c.zip |
Fix FTBFS
Diffstat (limited to 'src/parser.yy')
-rw-r--r-- | src/parser.yy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.yy b/src/parser.yy index 4410843..b24dafb 100644 --- a/src/parser.yy +++ b/src/parser.yy @@ -148,7 +148,7 @@ S: SET FUNC ASSIGN EXP { if(manager->isFunction(funcName)) manager->removeFunction(funcName); - BaseFunction *newFn = new UserDefinedFunction(funcName, $4); + BaseFunction *newFn = new UserDefinedFunction(funcName.ascii(), $4); if(!manager->addFunction(newFn, ident)) { TQString s(i18n("Unable to define function %1 because it is recursive.").tqarg(funcName)); Result::setLastResult(s); @@ -170,7 +170,7 @@ S: SET IDENT ASSIGN EXP { // No need to check if the function is already defined, because the // lexer checked for us before returning the IDENT token. - BaseFunction *newFn = new UserDefinedFunction(funcName, $4); + BaseFunction *newFn = new UserDefinedFunction(funcName.ascii(), $4); FunctionManager::instance()->addFunction(newFn, ident); Result::setLastResult(Result::Null); |