* Implementation of GiNaC's constant types and some special constants. */
/*
- * GiNaC Copyright (C) 1999-2016 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2020 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
return inherited::info(inf);
}
-ex constant::evalf(int level) const
+ex constant::evalf() const
{
if (ef!=nullptr) {
return ef();
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);