From: Alexei Sheplyakov Date: Fri, 7 Aug 2009 20:22:18 +0000 (+0300) Subject: Fix the compliation error *for real* X-Git-Tag: release_1-5-4~15 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=commitdiff_plain;h=14aeeca161c7cc2d145b0778ac234341068efef1;p=ginac.git Fix the compliation error *for real* --- diff --git a/ginac/parser/parser.cpp b/ginac/parser/parser.cpp index 6ed364ff..cfa313b4 100644 --- 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(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;