]> www.ginac.de Git - ginac.git/blobdiff - ginac/parser/parser.cpp
Fixed cast that caused compile error on 64bit machines.
[ginac.git] / ginac / parser / parser.cpp
index 42edf5b0834eceac42f5bf52606935726c8a62ed..a3f3f0520c8c6bbff90330f76303af69361e1b05 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of GiNaC's parser. */
 
 /*
- *  GiNaC Copyright (C) 1999-2009 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -25,6 +25,7 @@
 #include "debug.h"
 #include "mul.h"
 #include "constant.h"
+#include "function.h"
 
 #include <sstream>
 #include <stdexcept>
@@ -65,7 +66,7 @@ ex parser::parse_identifier_expr()
                Parse_error_("no function \"" << name << "\" with " <<
                             args.size() << " arguments");
        }
-       ex ret = reader->second(args);
+       ex ret = GiNaC::function(reinterpret_cast<unsigned>(reader->second), args);
        return ret;
 }