git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4da34c
)
Fixed the fix in commit f059ebe117d15292e0d262e6e8e232e835c7e33c.
author
Jens Vollinga
<jensv@balin.nikhef.nl>
Fri, 31 Jul 2009 13:29:17 +0000
(15:29 +0200)
committer
Alexei Sheplyakov
<Alexei.Sheplyakov@gmail.com>
Thu, 9 Dec 2010 18:46:29 +0000
(20:46 +0200)
ginac/parser/parser.cpp
patch
|
blob
|
history
diff --git
a/ginac/parser/parser.cpp
b/ginac/parser/parser.cpp
index d639bfe1465f1f693c627c3ec03c7ddf610f7403..3fa40c92bd6c1a523b94d79f671bcec68afca3f7 100644
(file)
--- a/
ginac/parser/parser.cpp
+++ b/
ginac/parser/parser.cpp
@@
-68,14
+68,15
@@
ex parser::parse_identifier_expr()
}
// dirty hack to distinguish between serial numbers of functions and real
// pointers.
+ GiNaC::function* f;
try {
- GiNaC::function f(reinterpret_cast<unsigned>(reader->second), args);
- return f;
+ f = new GiNaC::function(reinterpret_cast<unsigned>(reader->second), args);
}
catch ( std::runtime_error ) {
ex ret = reader->second(args);
return ret;
}
+ return f->setflag(status_flags::dynallocated);
}
/// paren_expr: '(' expression ')'