X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fwildcard.cpp;h=38a67de90a44792d811cf7b4666fa55dd6999353;hp=8bf8c6a739c1b7e5c6307f21805c5f33cd879159;hb=2ba3a7625b322bdd07dfae38a9a3843ac1df1461;hpb=8bb4443ddf986ff54b0ebd4158b57c184df0dd58 diff --git a/ginac/wildcard.cpp b/ginac/wildcard.cpp index 8bf8c6a7..38a67de9 100644 --- a/ginac/wildcard.cpp +++ b/ginac/wildcard.cpp @@ -3,7 +3,7 @@ * Implementation of GiNaC's wildcard objects. */ /* - * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2007 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 @@ -37,7 +37,7 @@ GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(wildcard, basic, // default constructor ////////// -wildcard::wildcard() : inherited(TINFO_wildcard), label(0) +wildcard::wildcard() : inherited(&wildcard::tinfo_static), label(0) { setflag(status_flags::evaluated | status_flags::expanded); } @@ -46,7 +46,7 @@ wildcard::wildcard() : inherited(TINFO_wildcard), label(0) // other constructors ////////// -wildcard::wildcard(unsigned l) : inherited(TINFO_wildcard), label(l) +wildcard::wildcard(unsigned l) : inherited(&wildcard::tinfo_static), label(l) { setflag(status_flags::evaluated | status_flags::expanded); } @@ -106,7 +106,7 @@ unsigned wildcard::calchash() const // this is where the schoolbook method // (golden_ratio_hash(tinfo()) ^ label) // is not good enough yet... - hashvalue = golden_ratio_hash(golden_ratio_hash(tinfo()) ^ label); + hashvalue = golden_ratio_hash(golden_ratio_hash((p_int)tinfo()) ^ label); setflag(status_flags::hash_calculated); return hashvalue; }