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:
4b8098a
)
Fix the compliation error *for real*
author
Alexei Sheplyakov
<varg@metalica.kh.ua>
Fri, 7 Aug 2009 20:22:18 +0000
(23:22 +0300)
committer
Alexei Sheplyakov
<Alexei.Sheplyakov@gmail.com>
Thu, 9 Dec 2010 18:46:45 +0000
(20:46 +0200)
ginac/parser/parser.cpp
patch
|
blob
|
history
diff --git
a/ginac/parser/parser.cpp
b/ginac/parser/parser.cpp
index 52f7e1df3454c9df01b5dc9f90511d4373260397..78a03f81df0401f9f220f4955c276f0c036e5240 100644
(file)
--- a/
ginac/parser/parser.cpp
+++ b/
ginac/parser/parser.cpp
@@
-70,7
+70,8
@@
ex parser::parse_identifier_expr()
// pointers.
GiNaC::function* f = NULL;
try {
- f = new GiNaC::function(reinterpret_cast<unsigned>(reader->second), args);
+ unsigned serial = (unsigned)(unsigned long)(void *)(reader->second);
+ f = new GiNaC::function(serial, args);
}
catch ( std::runtime_error ) {
if ( f ) delete f;