From 14aeeca161c7cc2d145b0778ac234341068efef1 Mon Sep 17 00:00:00 2001 From: Alexei Sheplyakov Date: Fri, 7 Aug 2009 23:22:18 +0300 Subject: [PATCH 1/1] 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 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; -- 2.44.0