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-6-0~24 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=ab6a9475aef3d8f97a1b520731ad528603946410 Fix the compliation error *for real* --- diff --git a/ginac/parser/parser.cpp b/ginac/parser/parser.cpp index 52f7e1df..78a03f81 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;