]> 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)
committerAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Thu, 9 Dec 2010 18:46:45 +0000 (20:46 +0200)
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;