X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Ffunction.pl;h=e1533be27aba0d57cd126b8ae27cb02f719479ec;hp=31f8ba5ecf3c02ee620eb0105ee23a5c10717926;hb=0256e2fe48a0ecce79c37ac209620ca852b7f11a;hpb=75b1f2213aa6dc0e563b8ad6202522a5f40cb5be diff --git a/ginac/function.pl b/ginac/function.pl index 31f8ba5e..e1533be2 100644 --- a/ginac/function.pl +++ b/ginac/function.pl @@ -603,6 +603,7 @@ $implementation=< @@ -1062,8 +1063,7 @@ ex function::eval_ncmul(const exvector & v) const unsigned function::calchash() const { - const void* this_tinfo = (const void*)typeid(*this).name(); - unsigned v = golden_ratio_hash(golden_ratio_hash((p_int)this_tinfo) ^ serial); + unsigned v = golden_ratio_hash(make_hash_seed(typeid(*this)) ^ serial); for (size_t i=0; iop(i).gethash();