]> www.ginac.de Git - ginac.git/blobdiff - ginac/parser/parser.cpp
Fix the compliation error *for real*
[ginac.git] / ginac / parser / parser.cpp
index 52f7e1df3454c9df01b5dc9f90511d4373260397..78a03f81df0401f9f220f4955c276f0c036e5240 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;