]> www.ginac.de Git - ginac.git/blobdiff - ginac/constant.cpp
Finalize 1.7.7 release.
[ginac.git] / ginac / constant.cpp
index cf6c4ae1207e1ff0fc843a03aa7c13a7bbbc60eb..85af0c14880a961769b6d3fd994f362002b19b62 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of GiNaC's constant types and some special constants. */
 
 /*
- *  GiNaC Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2019 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
@@ -148,7 +148,7 @@ bool constant::info(unsigned inf) const
                return inherited::info(inf);
 }
 
-ex constant::evalf(int level) const
+ex constant::evalf() const
 {
        if (ef!=nullptr) {
                return ef();
@@ -216,7 +216,7 @@ bool constant::is_equal_same_type(const basic & other) const
 unsigned constant::calchash() const
 {
        const void* typeid_this = (const void*)typeid(*this).name();
-       hashvalue = golden_ratio_hash((p_int)typeid_this ^ serial);
+       hashvalue = golden_ratio_hash((uintptr_t)typeid_this ^ serial);
 
        setflag(status_flags::hash_calculated);