]> www.ginac.de Git - ginac.git/commitdiff
Fix the compliation error *for real*
authorAlexei Sheplyakov <varg@metalica.kh.ua>
Fri, 7 Aug 2009 20:22:18 +0000 (23:22 +0300)
committerJens Vollinga <jensv@nikhef.nl>
Sun, 9 Aug 2009 20:27:20 +0000 (22:27 +0200)
ginac/parser/parser.cpp

index 6ed364ffd5a155ae0bb5abeec567a8f17e3ffbaf..cfa313b4f7ba08659f512e1a3c8607b85001430d 100644 (file)
@@ -70,7 +70,8 @@ ex parser::parse_identifier_expr()
        // pointers.
        GiNaC::function* f = NULL;
        try {
        // 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;
        }
        catch ( std::runtime_error ) {
                if ( f ) delete f;