Fix the compliation error *for real*
authorAlexei Sheplyakov <varg@metalica.kh.ua>
Fri, 7 Aug 2009 20:22:18 +0000 (23:22 +0300)
committerAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Thu, 9 Dec 2010 18:46:45 +0000 (20:46 +0200)
ginac/parser/parser.cpp

index 52f7e1d..78a03f8 100644 (file)
@@ -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;