From ab6a9475aef3d8f97a1b520731ad528603946410 Mon Sep 17 00:00:00 2001 From: Alexei Sheplyakov Date: Fri, 7 Aug 2009 23:22:18 +0300 Subject: [PATCH] Fix the compliation error *for real* --- ginac/parser/parser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.49.0